how do I get number of active tcp connections?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

how do I get number of active tcp connections?

Peter Speck
Hi,

I've started using Grizzly 1.7.0 and it works very well.

I would like to get the number of current tcp connections for  
statistics (http keep-alive connections). It seems like  
SelectorThread.getKeepAliveStats().getCountConnections() returns the  
total number of connections made (over the full lifetime) and not the  
current number of open connections.

Can I obtain the number of current tcp connection from the http  
module, or from lower-level parts of Grizzly?

When I log the numbers each second, I get:
KAS:  conns=10, flushes=0, hits=20, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=11, flushes=0, hits=22, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=16, flushes=0, hits=36, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=17, flushes=0, hits=38, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=19, flushes=0, hits=42, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=20, flushes=0, hits=44, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=21, flushes=0, hits=46, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=23, flushes=0, hits=52, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=24, flushes=0, hits=60, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=25, flushes=0, hits=62, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=26, flushes=0, hits=64, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=27, flushes=0, hits=66, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=28, flushes=0, hits=68, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=29, flushes=0, hits=70, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=30, flushes=0, hits=72, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=31, flushes=0, hits=74, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=32, flushes=0, hits=76, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=33, flushes=0, hits=78, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30

KeepAliveStats kas = getKeepAliveStats();
return "KAS:  conns=" + kas.getCountConnections()
        + ", flushes=" + kas.getCountFlushes()
        + ", hits=" + kas.getCountHits()
        + ", refusals=" + kas.getCountRefusals()
        + ", timeouts=" + kas.getCountTimeouts()
        + ", maxConns=" + kas.getMaxConnections()
        + ", secTimeouts=" + kas.getSecondsTimeouts() + "\n";


  Grizzly configuration for port 80
         maxThreads: 50
         minThreads: 5
         ByteBuffer size: 32768
         useDirectByteBuffer: false
         useByteBufferView: false
         maxHttpHeaderSize: 8192
         maxKeepAliveRequests: 8196
         keepAliveTimeoutInSeconds: 30
         Static File Cache enabled: false
         Stream Algorithm : com.sun.grizzly.http.algorithms.NoParsingAlgorithm
         Pipeline : com.sun.grizzly.http.LinkedListPipeline
         Round Robin Selector Algorithm enabled: false
         Round Robin Selector pool size: 0
         recycleTasks: true
         Asynchronous Request Processing enabled: false

----
    - Peter Speck



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

Jeanfrancois Arcand-2
Hi Peter,

Peter Speck wrote:
> Hi,
>
> I've started using Grizzly 1.7.0 and it works very well.

Thanks!

>
> I would like to get the number of current tcp connections for statistics
> (http keep-alive connections). It seems like
> SelectorThread.getKeepAliveStats().getCountConnections() returns the
> total number of connections made (over the full lifetime) and not the
> current number of open connections.
>
> Can I obtain the number of current tcp connection from the http module,
> or from lower-level parts of Grizzly?

You are using the right interface, and found a bug. From the
implementation, it seems we are missing the logic to decrease the count:

>     public boolean trap(SelectionKey key){
>         if ( maxKeepAliveRequests == -1) return true;
>        
>         Integer count = keepAliveCounts.get(key);
>         if ( count == null ){
>             count = 0;
>             if (keepAliveStats != null) {
>                 keepAliveStats.incrementCountConnections();
>             }
>         }
>        
>         if ((count++) > maxKeepAliveRequests){
>             if (keepAliveStats != null) {
>                 keepAliveStats.incrementCountRefusals();
>             }
>             return false;
>         }
>
>         keepAliveCounts.put(key, count);
>         if (keepAliveStats != null) {
>             keepAliveStats.incrementCountHits();
>         }
>
>         return true;
>     }
>    
>    
>     /**
>      * Stop monitoring keep-alive request count for the given connection.
>      */
>     public void untrap(SelectionKey key){
>         if ( maxKeepAliveRequests == -1) return;
>        
>         keepAliveCounts.remove(key);
>     }

Inside the untrap(..), we must decrease the count. Can you file a bug here:

https://grizzly.dev.java.net/issues/

I will fix it on the trunk now (Glassfish has the same problem, so you
have found 2 bugs :-) :-))

Thanks!

-- Jeanfrancois




>
> When I log the numbers each second, I get:
> KAS:  conns=10, flushes=0, hits=20, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=11, flushes=0, hits=22, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=16, flushes=0, hits=36, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=17, flushes=0, hits=38, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=19, flushes=0, hits=42, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=20, flushes=0, hits=44, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=21, flushes=0, hits=46, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=23, flushes=0, hits=52, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=24, flushes=0, hits=60, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=25, flushes=0, hits=62, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=26, flushes=0, hits=64, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=27, flushes=0, hits=66, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=28, flushes=0, hits=68, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=29, flushes=0, hits=70, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=30, flushes=0, hits=72, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=31, flushes=0, hits=74, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=32, flushes=0, hits=76, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=33, flushes=0, hits=78, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
>
> KeepAliveStats kas = getKeepAliveStats();
> return "KAS:  conns=" + kas.getCountConnections()
>     + ", flushes=" + kas.getCountFlushes()
>     + ", hits=" + kas.getCountHits()
>     + ", refusals=" + kas.getCountRefusals()
>     + ", timeouts=" + kas.getCountTimeouts()
>     + ", maxConns=" + kas.getMaxConnections()
>     + ", secTimeouts=" + kas.getSecondsTimeouts() + "\n";
>
>
>  Grizzly configuration for port 80
>      maxThreads: 50
>      minThreads: 5
>      ByteBuffer size: 32768
>      useDirectByteBuffer: false
>      useByteBufferView: false
>      maxHttpHeaderSize: 8192
>      maxKeepAliveRequests: 8196
>      keepAliveTimeoutInSeconds: 30
>      Static File Cache enabled: false
>      Stream Algorithm : com.sun.grizzly.http.algorithms.NoParsingAlgorithm
>      Pipeline : com.sun.grizzly.http.LinkedListPipeline
>      Round Robin Selector Algorithm enabled: false
>      Round Robin Selector pool size: 0
>      recycleTasks: true
>      Asynchronous Request Processing enabled: false
>
> ----
>    - Peter Speck
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

Jeanfrancois Arcand-2
Hi Peter,

Fixed:

> Sending        http/src/main/java/com/sun/grizzly/http/KeepAliveCountManager.java
> Sending        http/src/main/java/com/sun/grizzly/http/KeepAliveStats.java
> Transmitting file data ..
> Committed revision 740.

Can you try it and let me know :-)

A+

-- Jeanfrancois

Jeanfrancois Arcand wrote:

> Hi Peter,
>
> Peter Speck wrote:
>> Hi,
>>
>> I've started using Grizzly 1.7.0 and it works very well.
>
> Thanks!
>
>>
>> I would like to get the number of current tcp connections for
>> statistics (http keep-alive connections). It seems like
>> SelectorThread.getKeepAliveStats().getCountConnections() returns the
>> total number of connections made (over the full lifetime) and not the
>> current number of open connections.
>>
>> Can I obtain the number of current tcp connection from the http
>> module, or from lower-level parts of Grizzly?
>
> You are using the right interface, and found a bug. From the
> implementation, it seems we are missing the logic to decrease the count:
>
>>     public boolean trap(SelectionKey key){
>>         if ( maxKeepAliveRequests == -1) return true;
>>                 Integer count = keepAliveCounts.get(key);
>>         if ( count == null ){
>>             count = 0;
>>             if (keepAliveStats != null) {
>>                 keepAliveStats.incrementCountConnections();
>>             }
>>         }
>>                 if ((count++) > maxKeepAliveRequests){
>>             if (keepAliveStats != null) {
>>                 keepAliveStats.incrementCountRefusals();
>>             }
>>             return false;
>>         }
>>
>>         keepAliveCounts.put(key, count);
>>         if (keepAliveStats != null) {
>>             keepAliveStats.incrementCountHits();
>>         }
>>
>>         return true;
>>     }
>>             /**
>>      * Stop monitoring keep-alive request count for the given connection.
>>      */
>>     public void untrap(SelectionKey key){
>>         if ( maxKeepAliveRequests == -1) return;
>>                 keepAliveCounts.remove(key);
>>     }
>
> Inside the untrap(..), we must decrease the count. Can you file a bug here:
>
> https://grizzly.dev.java.net/issues/
>
> I will fix it on the trunk now (Glassfish has the same problem, so you
> have found 2 bugs :-) :-))
>
> Thanks!
>
> -- Jeanfrancois
>
>
>
>
>>
>> When I log the numbers each second, I get:
>> KAS:  conns=10, flushes=0, hits=20, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=11, flushes=0, hits=22, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=16, flushes=0, hits=36, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=17, flushes=0, hits=38, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=19, flushes=0, hits=42, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=20, flushes=0, hits=44, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=21, flushes=0, hits=46, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=23, flushes=0, hits=52, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=24, flushes=0, hits=60, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=25, flushes=0, hits=62, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=26, flushes=0, hits=64, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=27, flushes=0, hits=66, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=28, flushes=0, hits=68, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=29, flushes=0, hits=70, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=30, flushes=0, hits=72, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=31, flushes=0, hits=74, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=32, flushes=0, hits=76, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=33, flushes=0, hits=78, refusals=0, timeouts=0,
>> maxConns=8196, secTimeouts=30
>>
>> KeepAliveStats kas = getKeepAliveStats();
>> return "KAS:  conns=" + kas.getCountConnections()
>>     + ", flushes=" + kas.getCountFlushes()
>>     + ", hits=" + kas.getCountHits()
>>     + ", refusals=" + kas.getCountRefusals()
>>     + ", timeouts=" + kas.getCountTimeouts()
>>     + ", maxConns=" + kas.getMaxConnections()
>>     + ", secTimeouts=" + kas.getSecondsTimeouts() + "\n";
>>
>>
>>  Grizzly configuration for port 80
>>      maxThreads: 50
>>      minThreads: 5
>>      ByteBuffer size: 32768
>>      useDirectByteBuffer: false
>>      useByteBufferView: false
>>      maxHttpHeaderSize: 8192
>>      maxKeepAliveRequests: 8196
>>      keepAliveTimeoutInSeconds: 30
>>      Static File Cache enabled: false
>>      Stream Algorithm :
>> com.sun.grizzly.http.algorithms.NoParsingAlgorithm
>>      Pipeline : com.sun.grizzly.http.LinkedListPipeline
>>      Round Robin Selector Algorithm enabled: false
>>      Round Robin Selector pool size: 0
>>      recycleTasks: true
>>      Asynchronous Request Processing enabled: false
>>
>> ----
>>    - Peter Speck
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

Peter Speck

On 28/01/2008, at 16:25, Jeanfrancois Arcand wrote:

>> Committed revision 740.
>
> Can you try it and let me know :-)


I've checked out r740.  The number now goes negative after a little  
while.  After launching the server, the log is:


KAS:  conns=5, flushes=0, hits=12, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=22, flushes=0, hits=114, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=30, flushes=0, hits=172, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=32, flushes=0, hits=214, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=31, flushes=0, hits=296, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=48, flushes=0, hits=486, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=54, flushes=0, hits=566, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=61, flushes=0, hits=654, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=76, flushes=0, hits=802, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=80, flushes=0, hits=880, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=76, flushes=0, hits=958, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=74, flushes=0, hits=1050, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=77, flushes=0, hits=1136, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=72, flushes=0, hits=1230, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=68, flushes=0, hits=1330, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=83, flushes=0, hits=1438, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=95, flushes=0, hits=1646, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=89, flushes=0, hits=1674, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=87, flushes=0, hits=1752, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=89, flushes=0, hits=1838, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=90, flushes=0, hits=1946, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=85, flushes=0, hits=2018, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=76, flushes=0, hits=2088, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=75, flushes=0, hits=2166, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=72, flushes=0, hits=2226, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=76, flushes=0, hits=2358, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=68, flushes=0, hits=2450, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=63, flushes=0, hits=2552, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=55, flushes=0, hits=2632, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=55, flushes=0, hits=2678, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=50, flushes=0, hits=2808, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=49, flushes=0, hits=2920, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=50, flushes=0, hits=3002, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=53, flushes=0, hits=3134, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=53, flushes=0, hits=3230, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=49, flushes=0, hits=3302, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=46, flushes=0, hits=3408, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=72, flushes=0, hits=3516, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=72, flushes=0, hits=3564, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=72, flushes=0, hits=3632, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=69, flushes=0, hits=3734, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=54, flushes=0, hits=3792, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=36, flushes=0, hits=3888, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=26, flushes=0, hits=3936, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=20, flushes=0, hits=4010, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=16, flushes=0, hits=4094, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=7, flushes=0, hits=4170, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=9, flushes=0, hits=4286, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=2, flushes=0, hits=4330, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-3, flushes=0, hits=4384, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-4, flushes=0, hits=4436, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-2, flushes=0, hits=4546, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-6, flushes=0, hits=4608, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-8, flushes=0, hits=4702, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-12, flushes=0, hits=4792, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-14, flushes=0, hits=4892, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-24, flushes=0, hits=4982, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-28, flushes=0, hits=5044, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-21, flushes=0, hits=5138, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-30, flushes=0, hits=5200, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-31, flushes=0, hits=5248, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-34, flushes=0, hits=5336, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-32, flushes=0, hits=5472, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-56, flushes=0, hits=5610, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-59, flushes=0, hits=5716, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-63, flushes=0, hits=5814, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-65, flushes=0, hits=5862, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-66, flushes=0, hits=5898, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-69, flushes=0, hits=5934, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-81, flushes=0, hits=5992, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-95, flushes=0, hits=6070, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-96, flushes=0, hits=6158, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-97, flushes=0, hits=6322, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-101, flushes=0, hits=6412, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-104, flushes=0, hits=6484, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-112, flushes=0, hits=6558, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-110, flushes=0, hits=6666, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-109, flushes=0, hits=6766, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-111, flushes=0, hits=6884, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-107, flushes=0, hits=6960, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-106, flushes=0, hits=7100, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-112, flushes=0, hits=7170, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-117, flushes=0, hits=7234, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-134, flushes=0, hits=7304, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-137, flushes=0, hits=7320, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-139, flushes=0, hits=7336, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-134, flushes=0, hits=7508, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-135, flushes=0, hits=7572, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-137, flushes=0, hits=7696, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-144, flushes=0, hits=7752, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-138, flushes=0, hits=7874, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-141, flushes=0, hits=8010, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30
KAS:  conns=-141, flushes=0, hits=8078, refusals=0, timeouts=0,  
maxConns=8196, secTimeouts=30


----
    - Peter Speck



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

Jeanfrancois Arcand-2


Peter Speck wrote:

>
> On 28/01/2008, at 16:25, Jeanfrancois Arcand wrote:
>
>>> Committed revision 740.
>>
>> Can you try it and let me know :-)
>
>
> I've checked out r740.  The number now goes negative after a little
> while.  After launching the server, the log is:

LOL :-)

Let me take close look to prevent negative one!

A+

-- Jeanfrancois

>
>
> KAS:  conns=5, flushes=0, hits=12, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=22, flushes=0, hits=114, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=30, flushes=0, hits=172, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=32, flushes=0, hits=214, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=31, flushes=0, hits=296, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=48, flushes=0, hits=486, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=54, flushes=0, hits=566, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=61, flushes=0, hits=654, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=802, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=80, flushes=0, hits=880, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=958, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=74, flushes=0, hits=1050, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=77, flushes=0, hits=1136, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=1230, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=68, flushes=0, hits=1330, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=83, flushes=0, hits=1438, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=95, flushes=0, hits=1646, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=89, flushes=0, hits=1674, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=87, flushes=0, hits=1752, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=89, flushes=0, hits=1838, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=90, flushes=0, hits=1946, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=85, flushes=0, hits=2018, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=2088, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=75, flushes=0, hits=2166, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=2226, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=2358, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=68, flushes=0, hits=2450, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=63, flushes=0, hits=2552, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=55, flushes=0, hits=2632, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=55, flushes=0, hits=2678, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=50, flushes=0, hits=2808, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=49, flushes=0, hits=2920, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=50, flushes=0, hits=3002, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=53, flushes=0, hits=3134, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=53, flushes=0, hits=3230, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=49, flushes=0, hits=3302, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=46, flushes=0, hits=3408, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3516, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3564, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3632, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=69, flushes=0, hits=3734, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=54, flushes=0, hits=3792, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=36, flushes=0, hits=3888, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=26, flushes=0, hits=3936, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=20, flushes=0, hits=4010, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=16, flushes=0, hits=4094, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=7, flushes=0, hits=4170, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=9, flushes=0, hits=4286, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=2, flushes=0, hits=4330, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-3, flushes=0, hits=4384, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-4, flushes=0, hits=4436, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-2, flushes=0, hits=4546, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-6, flushes=0, hits=4608, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-8, flushes=0, hits=4702, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-12, flushes=0, hits=4792, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-14, flushes=0, hits=4892, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-24, flushes=0, hits=4982, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-28, flushes=0, hits=5044, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-21, flushes=0, hits=5138, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-30, flushes=0, hits=5200, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-31, flushes=0, hits=5248, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-34, flushes=0, hits=5336, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-32, flushes=0, hits=5472, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-56, flushes=0, hits=5610, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-59, flushes=0, hits=5716, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-63, flushes=0, hits=5814, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-65, flushes=0, hits=5862, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-66, flushes=0, hits=5898, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-69, flushes=0, hits=5934, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-81, flushes=0, hits=5992, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-95, flushes=0, hits=6070, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-96, flushes=0, hits=6158, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-97, flushes=0, hits=6322, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-101, flushes=0, hits=6412, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-104, flushes=0, hits=6484, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-112, flushes=0, hits=6558, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-110, flushes=0, hits=6666, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-109, flushes=0, hits=6766, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-111, flushes=0, hits=6884, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-107, flushes=0, hits=6960, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-106, flushes=0, hits=7100, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-112, flushes=0, hits=7170, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-117, flushes=0, hits=7234, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-134, flushes=0, hits=7304, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-137, flushes=0, hits=7320, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-139, flushes=0, hits=7336, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-134, flushes=0, hits=7508, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-135, flushes=0, hits=7572, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-137, flushes=0, hits=7696, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-144, flushes=0, hits=7752, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-138, flushes=0, hits=7874, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-141, flushes=0, hits=8010, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-141, flushes=0, hits=8078, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
>
>
> ----
>    - Peter Speck
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

ALT Mobile DEV
Hi,


It seems that client disconnects are now automagically handled and now  
an AsyncConnection (let's say in a Grizzlet) will not try to push to  
clients that have disconnected from an embedded Grizzly Comet server.

Fabulous.



--Zaid


http://altmobile.com/Home.html




On Jan 28, 2008, at 12:59 PM, Jeanfrancois Arcand wrote:

>
>
> Peter Speck wrote:
>> On 28/01/2008, at 16:25, Jeanfrancois Arcand wrote:
>>>> Committed revision 740.
>>>
>>> Can you try it and let me know :-)
>> I've checked out r740.  The number now goes negative after a little  
>> while.  After launching the server, the log is:
>
> LOL :-)
>
> Let me take close look to prevent negative one!
>
> A+
>
> -- Jeanfrancois
>
>> KAS:  conns=5, flushes=0, hits=12, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=22, flushes=0, hits=114, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=30, flushes=0, hits=172, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=32, flushes=0, hits=214, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=31, flushes=0, hits=296, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=48, flushes=0, hits=486, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=54, flushes=0, hits=566, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=61, flushes=0, hits=654, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=76, flushes=0, hits=802, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=80, flushes=0, hits=880, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=76, flushes=0, hits=958, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=74, flushes=0, hits=1050, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=77, flushes=0, hits=1136, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=72, flushes=0, hits=1230, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=68, flushes=0, hits=1330, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=83, flushes=0, hits=1438, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=95, flushes=0, hits=1646, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=89, flushes=0, hits=1674, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=87, flushes=0, hits=1752, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=89, flushes=0, hits=1838, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=90, flushes=0, hits=1946, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=85, flushes=0, hits=2018, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=76, flushes=0, hits=2088, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=75, flushes=0, hits=2166, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=72, flushes=0, hits=2226, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=76, flushes=0, hits=2358, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=68, flushes=0, hits=2450, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=63, flushes=0, hits=2552, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=55, flushes=0, hits=2632, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=55, flushes=0, hits=2678, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=50, flushes=0, hits=2808, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=49, flushes=0, hits=2920, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=50, flushes=0, hits=3002, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=53, flushes=0, hits=3134, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=53, flushes=0, hits=3230, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=49, flushes=0, hits=3302, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=46, flushes=0, hits=3408, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=72, flushes=0, hits=3516, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=72, flushes=0, hits=3564, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=72, flushes=0, hits=3632, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=69, flushes=0, hits=3734, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=54, flushes=0, hits=3792, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=36, flushes=0, hits=3888, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=26, flushes=0, hits=3936, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=20, flushes=0, hits=4010, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=16, flushes=0, hits=4094, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=7, flushes=0, hits=4170, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=9, flushes=0, hits=4286, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=2, flushes=0, hits=4330, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-3, flushes=0, hits=4384, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-4, flushes=0, hits=4436, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-2, flushes=0, hits=4546, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-6, flushes=0, hits=4608, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-8, flushes=0, hits=4702, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-12, flushes=0, hits=4792, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-14, flushes=0, hits=4892, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-24, flushes=0, hits=4982, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-28, flushes=0, hits=5044, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-21, flushes=0, hits=5138, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-30, flushes=0, hits=5200, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-31, flushes=0, hits=5248, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-34, flushes=0, hits=5336, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-32, flushes=0, hits=5472, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-56, flushes=0, hits=5610, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-59, flushes=0, hits=5716, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-63, flushes=0, hits=5814, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-65, flushes=0, hits=5862, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-66, flushes=0, hits=5898, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-69, flushes=0, hits=5934, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-81, flushes=0, hits=5992, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-95, flushes=0, hits=6070, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-96, flushes=0, hits=6158, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-97, flushes=0, hits=6322, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-101, flushes=0, hits=6412, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-104, flushes=0, hits=6484, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-112, flushes=0, hits=6558, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-110, flushes=0, hits=6666, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-109, flushes=0, hits=6766, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-111, flushes=0, hits=6884, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-107, flushes=0, hits=6960, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-106, flushes=0, hits=7100, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-112, flushes=0, hits=7170, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-117, flushes=0, hits=7234, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-134, flushes=0, hits=7304, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-137, flushes=0, hits=7320, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-139, flushes=0, hits=7336, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-134, flushes=0, hits=7508, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-135, flushes=0, hits=7572, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-137, flushes=0, hits=7696, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-144, flushes=0, hits=7752, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-138, flushes=0, hits=7874, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-141, flushes=0, hits=8010, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> KAS:  conns=-141, flushes=0, hits=8078, refusals=0, timeouts=0,  
>> maxConns=8196, secTimeouts=30
>> ----
>>   - Peter Speck
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: how do I get number of active tcp connections?

Jeanfrancois Arcand-2
In reply to this post by Peter Speck
Hi Peter,

I've commited the fix. Take a look and let me know. Hopefully this time
I got it right.

Thanks

-- Jeanfrancois

Peter Speck wrote:

>
> On 28/01/2008, at 16:25, Jeanfrancois Arcand wrote:
>
>>> Committed revision 740.
>>
>> Can you try it and let me know :-)
>
>
> I've checked out r740.  The number now goes negative after a little
> while.  After launching the server, the log is:
>
>
> KAS:  conns=5, flushes=0, hits=12, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=22, flushes=0, hits=114, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=30, flushes=0, hits=172, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=32, flushes=0, hits=214, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=31, flushes=0, hits=296, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=48, flushes=0, hits=486, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=54, flushes=0, hits=566, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=61, flushes=0, hits=654, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=802, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=80, flushes=0, hits=880, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=958, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=74, flushes=0, hits=1050, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=77, flushes=0, hits=1136, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=1230, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=68, flushes=0, hits=1330, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=83, flushes=0, hits=1438, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=95, flushes=0, hits=1646, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=89, flushes=0, hits=1674, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=87, flushes=0, hits=1752, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=89, flushes=0, hits=1838, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=90, flushes=0, hits=1946, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=85, flushes=0, hits=2018, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=2088, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=75, flushes=0, hits=2166, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=2226, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=76, flushes=0, hits=2358, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=68, flushes=0, hits=2450, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=63, flushes=0, hits=2552, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=55, flushes=0, hits=2632, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=55, flushes=0, hits=2678, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=50, flushes=0, hits=2808, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=49, flushes=0, hits=2920, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=50, flushes=0, hits=3002, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=53, flushes=0, hits=3134, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=53, flushes=0, hits=3230, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=49, flushes=0, hits=3302, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=46, flushes=0, hits=3408, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3516, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3564, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=72, flushes=0, hits=3632, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=69, flushes=0, hits=3734, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=54, flushes=0, hits=3792, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=36, flushes=0, hits=3888, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=26, flushes=0, hits=3936, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=20, flushes=0, hits=4010, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=16, flushes=0, hits=4094, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=7, flushes=0, hits=4170, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=9, flushes=0, hits=4286, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=2, flushes=0, hits=4330, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-3, flushes=0, hits=4384, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-4, flushes=0, hits=4436, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-2, flushes=0, hits=4546, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-6, flushes=0, hits=4608, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-8, flushes=0, hits=4702, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-12, flushes=0, hits=4792, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-14, flushes=0, hits=4892, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-24, flushes=0, hits=4982, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-28, flushes=0, hits=5044, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-21, flushes=0, hits=5138, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-30, flushes=0, hits=5200, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-31, flushes=0, hits=5248, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-34, flushes=0, hits=5336, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-32, flushes=0, hits=5472, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-56, flushes=0, hits=5610, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-59, flushes=0, hits=5716, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-63, flushes=0, hits=5814, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-65, flushes=0, hits=5862, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-66, flushes=0, hits=5898, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-69, flushes=0, hits=5934, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-81, flushes=0, hits=5992, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-95, flushes=0, hits=6070, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-96, flushes=0, hits=6158, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-97, flushes=0, hits=6322, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-101, flushes=0, hits=6412, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-104, flushes=0, hits=6484, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-112, flushes=0, hits=6558, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-110, flushes=0, hits=6666, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-109, flushes=0, hits=6766, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-111, flushes=0, hits=6884, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-107, flushes=0, hits=6960, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-106, flushes=0, hits=7100, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-112, flushes=0, hits=7170, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-117, flushes=0, hits=7234, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-134, flushes=0, hits=7304, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-137, flushes=0, hits=7320, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-139, flushes=0, hits=7336, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-134, flushes=0, hits=7508, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-135, flushes=0, hits=7572, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-137, flushes=0, hits=7696, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-144, flushes=0, hits=7752, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-138, flushes=0, hits=7874, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-141, flushes=0, hits=8010, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
> KAS:  conns=-141, flushes=0, hits=8078, refusals=0, timeouts=0,
> maxConns=8196, secTimeouts=30
>
>
> ----
>    - Peter Speck
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]