tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: mod_jk fails to forward request on high traffic
Date Tue, 08 Sep 2009 17:14:47 GMT
John Cherouvim wrote:
> Thanks for your reply. I'll try DisableReuse on the next peak, although
> I read in
> http://tomcat.apache.org/connectors-doc/generic_howto/timeouts.html that:
>> For this you set "JkOptions +DisableReuse" in your Apache httpd
>> configuration. This will have a huge negative performance impact!
> 
> Is there a possibility that there is a problem with the fact that I use:
> <IfModule mpm_prefork_module>
>    ...
>   ServerLimit        1024
>   MaxClients         1024
> 
> and default <Connector> settings?
> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443"
> address="127.0.0.1" />
> 
> Do those 2 need to have the same thread count (MaxClients=maxThreads)?

There is no one right answer. The best way to do this will vary from
case to case. DisableReuse is usually easier to set up than getting the
timeouts and thread pool sizes correct. As long as httpd and Tomcat are
on a fast local network, performance is very rarely an issue.

Mark

> 
> thanks
> Ioannis
> 
> Mark Thomas wrote:
>> John Cherouvim wrote:
>>  
>>> Hello
>>>
>>> I have a website which during peak time (peak lasts around ~4 hours with
>>> 14 pageviews/sec, 140 http requests/sec) starts to drop pageview
>>> requests.
>>>     
>>
>> My guess is that all of your Tomcat AJP threads are tied up with idle
>> httpd threads.
>>
>> Try the following in your httpd.conf:
>> JkOptions     +DisableReuse
>>
>> Mark
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 




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


Mime
View raw message