On Fri, 2008-04-18 at 17:50 -0700, David Byrne wrote:
> This question is in regards to HttpClient 4. 
> 
> I seem to be having a problem with ThreadSafeClientConnManager, or 
> ConnPoolByRoute.getEntry more specifically. For testing purposes, I have set 
> the MAX_HOST_CONNECTIONS and MAX_TOTAL_CONNECTIONS to 100, and confirmed that 
> the correct values are being used in getEntry. 
> 
> Despite these high values, I have a large number of threads that sit on the 
> call to WaitingThread.await. I haven’t timed how long they are sitting there, 
> but when I pause execution in a debugger, at least 80% of my 20+ threads are 
> paused there. Using netstat, I never see more than five established 
> connections to the server, and rarely more than four. A packet capture shows 
> that no connections are being rejected by the server.
> 
> Any ideas about what I’m doing wrong?
> 
> Thanks,
> David Byrne
> 
> 

David,

Please get the latest code out of SVN or Maven snapshot repository 

http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/
http://people.apache.org/repo/m2-snapshot-repository/org/apache/httpcomponents/httpclient/4.0-alpha4-SNAPSHOT/

Run your application with the following JVM properties

-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog 
-Dorg.apache.commons.logging.simplelog.log.org.apache.http.impl.conn=DEBUG

This should produce a detailed context log about connection pooling.
Feel free to post the log to this list if you need help interpreting it.

Hope this helps

Oleg


> 
> 
> 
> 
>       
> ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to