hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fang Lin <Fang...@u.washington.edu>
Subject ConnectionPoolTimeoutException
Date Thu, 21 Jul 2011 18:47:28 GMT
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)






Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message