You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by e <ju...@gmail.com> on 2005/03/30 15:01:50 UTC

JK 1.2.9 Apache - Tomcat thread synchronization

I watched the JBoss webinar, which was very helpful, but I still can't
understand how to tune the thread settings.

I use tc 5.5.7 and worker apache2.  In the webinar, it was stated that
apache maxclients should be the same value as maxThreads on tomcat. On
a heavily loaded apache, with 10 tc workers, does this still apply? 
For example on apache2 maxclients=150 and all 10 tomcats
maxthreads=150?

Thanks

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


Re: JK 1.2.9 Apache - Tomcat thread synchronization

Posted by Mladen Turk <ml...@jboss.com>.
e wrote:
> I watched the JBoss webinar, which was very helpful, but I still can't
> understand how to tune the thread settings.
> 
> I use tc 5.5.7 and worker apache2.  In the webinar, it was stated that
> apache maxclients should be the same value as maxThreads on tomcat. On
> a heavily loaded apache, with 10 tc workers, does this still apply? 
> For example on apache2 maxclients=150 and all 10 tomcats
> maxthreads=150?
>

If they are inside load balancer then you can spread the load.
For example if you have load balancer with 10 workers then divide
the maxThreads=MaxClients/10. Of course if you expect that one
or two TC's can get off line, then:
maxThreads=MaxClients(10 - expected failed servers)

Before 1.2.10 you had to add 20% because there was no shared memory.

OTOH if you are using direct connection to 10 different TC instances,
then yes, the numbers has to be equal, because at some point in time
150 clients can connect at once to a single tomcat instance.

I hope you are using load balancer :)

Regards,
Mladen

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