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: ConnectionPoolTimeoutException
Date Fri, 22 Jul 2011 12:26:19 GMT
On Thu, 2011-07-21 at 18:47 +0000, Fang Lin wrote:
> Often getting org.apache.http.conn.ConnectionPoolTimeoutException: Timeout waiting for
connection
>         at org.apache.http.impl.conn.tsccm.ConnPoolByRoute.getEntryBlocking(ConnPoolByRoute.java:417)
>         at org.apache.http.impl.conn.tsccm.ConnPoolByRoute$1.getPoolEntry(ConnPoolByRoute.java:300)
>         at org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager$1.getConnection(ThreadSafeClientConnManager.java:224)
>         at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:391)
>         at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
> when there were only two active connections in a ConnPoolByRoute whose  max connection
is set to 10.
> This case happened with some routes but not all routes. Once it started, only restarting
tomcat would fix the issue.
> Any suggestion?
> 
> 
> Httpclient 4.1.1, httpcore 4.1.2
> 
> Java(TM) SE Runtime Environment (build 1.6.0_23-b05) Java HotSpot(TM) 64-Bit Server VM
(build 19.0-b09, mixed mode)
> 

I suspect your code is leaking connections.

Oleg



---------------------------------------------------------------------
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