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: Out of memory using ThrottlingHttpClientHandler
Date Tue, 03 Jun 2008 13:16:38 GMT
On Tue, 2008-06-03 at 20:48 +0800, maomaode wrote:
> Hi,
> 
> 
> I'm hitting a Out Of Memory error when using ThrottlingHttpClientHandler 
> <http://hc.apache.org/httpcomponents-core/httpcore-nio/apidocs/org/apache/http/nio/protocol/ThrottlingHttpClientHandler.html>
> 
> I gave a Executors.|*newCachedThreadPool 
> <cid:part1.01010308.04040401@gmail.com>*(), should I give a fixed thread 
> pool?
> 

James,

What is it exactly you are trying to do? How many simultaneous
connections are you trying to open? What is the size of the content
buffer? it is 20480 (default)? 


> And BTW, what's the workerCount means in the |DefaultConnectingIOReactor?
> 

The number of threads I/O reactor uses to dispatch I/O events to the
protocol handlers. This number should be equal to that of CPU cores of
the system.  

Hope this helps

Oleg


> Thanks in advance,
> James
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 


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