public int activeConnections() {
        return Ints.saturatedCast(serverPortMetrics.stream().mapToLong(ServerPortMetric::activeConnections)
                                                   .sum());
    }
Returns the number of open connections.
core/src/main/java/com/linecorp/armeria/server/ServerMetrics.java