hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Locking problems of SocketInputSteam at org.apache.commons.httpclient.HttpParser.readRawLine
Date Wed, 24 Mar 2010 15:17:57 GMT
On Wed, 2010-03-24 at 10:41 +0530, Ruchi Goel wrote:
> Hi,
>   We are using commons-httpclient-3.0.jar for one of our yahoo properties. The application
is running on jetty.  In production, we are seeing the lock problems as follows :
> 
> 
> btpool0-11554                                     runnable
> 
>       btpool0-11597 is waiting on this thread
> 
>       btpool0-11614 is waiting on this thread
> 
>         "btpool0-11554" prio=1 tid=0x0000002c0275f7c0 nid=0x4b62 runnable [0x0000000041f4a000..0x0000000041f4dab0]
> 
>             at java.net.SocketInputStream.socketRead0(Native Method)
> 
>             at java.net.SocketInputStream.read(SocketInputStream.java:129)
> 
>             at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> 
>             at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
> 
>             - locked <0x0000002b0835ddf0> (a java.io.BufferedInputStream)
> 
>             at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
> 
>             at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
> 
>             at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
> 
>             at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1373)
> 
>             at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
> 
>             at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
> 
>             at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
> 
>             at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
>             at
> 
> There are many instances of such thread lock areas in the thread dump.
> Any pointers/help appreciated.
> 

The thread is blocked in a read operation waiting for input. Apparently
the server is not sending data.

Oleg

> Regards,
> Ruchi
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message