Re: [xSocket-develop] Several threads in 'waiting on NonBlockingConnection'
Status: Inactive
Brought to you by:
grro
|
From: Chirag S. <chi...@gm...> - 2009-07-16 07:07:34
|
Hey Gregor,
Figured it out earlier today. The following http client settings set:
http.setPooledMaxIdleTimeMillis(150000);
http.setPooledMaxLifeTimeMillis(600000);
Turns out, when it hit 150000ms, we weren't able to create new
connections (no idea why). Anyways, I removed those two lines and
things are working like a charm once again!
We recently upgraded to the following packages:
org.xsocket -- 2.5.2
org.xlightweb -- 2.6.3
Thanks
Chirag Shah
On Wed, Jul 15, 2009 at 10:58 PM, Gregor Roth<gre...@gm...> wrote:
> Hi Chirag,
>
> which timeouts did you set? Does this include the creationMaxWaitMillis
> parameter (pool.setCreationMaxWaitMillis(<millis>)? It seems that a plenty
> of connections are in connect state. Did you modify the maxActive parameter?
> May be it will help, if you active debug (FINE) level log.
>
> Gregor
>
>
> ----- Original Message -----
>
> From: Chirag Shah
>
> Sent: 07/15/09 07:01 am
>
> To: xso...@li...
>
> Subject: [xSocket-develop] Several threads in 'waiting on
> NonBlockingConnection'
>
>
>
> Hey xsocket,
>
> I'm running into an issue where our application is unable to make new
> non-blocking connections after some time. It works fine for a long
> time until it it reaches a state where it's unable to create new
> connections. Has anybody else run into this issue. I'm a bit sparse
> on details right now, but here's a snippet of the thread dump.
>
> We have set our timeouts to 3 minutes, and it doesn't look like we're
> running out of sockets.
>
> Thanks!
> Chirag Shah
>
> //Most of the threads are in this state
> java.lang.Thread.State: TIMED_WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <0xb610fcf0> (a
> org.xsocket.connection.NonBlockingConnection$SyncIoConnectorCallback)
> at
> org.xsocket.connection.NonBlockingConnection$SyncIoConnectorCallback.connect(NonBlockingConnection.java:737)
> - locked <0xb610fcf0> (a
> org.xsocket.connection.NonBlockingConnection$SyncIoConnectorCallback)
> at
> org.xsocket.connection.NonBlockingConnection.(NonBlockingConnection.java:700)
> at
> org.xsocket.connection.NonBlockingConnection.(NonBlockingConnection.java:677)
> at
> org.xsocket.connection.NonBlockingConnectionPool.newNativeConnection(NonBlockingConnectionPool.java:582)
> at
> org.xsocket.connection.NonBlockingConnectionPool.getConnection(NonBlockingConnectionPool.java:514)
> at
> org.xsocket.connection.NonBlockingConnectionPool.getConnection(NonBlockingConnectionPool.java:505)
> at
> org.xsocket.connection.NonBlockingConnectionPool.getNonBlockingConnection(NonBlockingConnectionPool.java:217)
> at
> org.xlightweb.client.HttpClientConnectionPool.getHttpClientConnection(HttpClientConnectionPool.java:116)
> at
> org.xlightweb.client.HttpClientConnection$ClientExchange.forward(HttpClientConnection.java:1213)
> at
> org.xlightweb.RequestHandlerChain$ChainExchange.handle(RequestHandlerChain.java:402)
> at
> org.xlightweb.RequestHandlerChain$ChainExchange.forward(RequestHandlerChain.java:472)
> at
> org.xlightweb.client.AutoRedirectHandler.onRequest(AutoRedirectHandler.java:80)
> at
> org.xlightweb.AbstractHttpConnection$RequestHandlerAdapter.performRequestHandler(AbstractHttpConnection.java:1898)
> at
> org.xlightweb.AbstractHttpConnection$RequestHandlerAdapter.onRequest(AbstractHttpConnection.java:1892)
> at
> org.xlightweb.RequestHandlerChain$ChainExchange.handle(RequestHandlerChain.java:393)
> at org.xlightweb.RequestHandlerChain.onRequest(RequestHandlerChain.java:257)
> at org.xlightweb.client.HttpClient.send(HttpClient.java:923)
>
> ------------------------------------------------------------------------------
> Enter the BlackBerry Developer Challenge
> This is your chance to win up to $100,000 in prizes! For a limited time,
> vendors submitting new applications to BlackBerry App World(TM) will have
> the opportunity to enter the BlackBerry Developer Challenge. See full prize
> details at: http://p.sf.net/sfu/Challenge
> _______________________________________________
> xSocket-develop mailing list
> xSo...@li...
> https://lists.sourceforge.net/lists/listinfo/xsocket-develop
>
>
>
|