You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by me...@assetmanagement.natexis.fr on 2004/02/18 09:41:25 UTC

Réf. : Re: Very Very Slow performance of Tomcat

Antonio,

I'm facing to the same performance problems with Tomcat.

My the maxProcessor value is equal to 75 while
the Apache's MaxClients is equals to 150.
the MaxKeepAliveRequests of apache is equal to 100

Do you understand the relationship between theses attributes ?


_______________________________________________
NATEXIS ASSET MANAGEMENT
Meissa SAKHO
01 58 19 45 71. . . . . . . . . . . . (84571)
meissa.sakho@assetmanagement.natexis.fr




Antonio Fiol Bonnín <fi...@terra.es>
18/02/2004 08:55
Veuillez répondre à "Tomcat Users List"


        Pour :  Tomcat Users List <to...@jakarta.apache.org>
        cc :
        Objet : Re: Very Very Slow performance of Tomcat


Is maxProcessors lower than Apache's MaxClients?

Are you hitting the max. number of connections to your database?

When it goes slow, does it hang later?

Are you closing all your connections to the DB?



Q: ---> Is there a "checklist" somewhere for this kind of things? It
would be useful for nearly everyone.


Antonio Fiol


Deepak Hegde wrote:

>Hi All,
>
>I am running Tomcat 4 and Apache 1.3 and Struts Framework on Sun Sparc
>machine having O.S 5.8 version.
>
>Web application is developed to use Postgres Database also.
>
>I am facing lots of performance issues with Tomcat i.e sometimes tomcat
process hangs and website stops opening and some times it goes very slow.
The Problem gets sloved when i restart the tomcat service again.
>
>I am really struggling find out the reason for this....
>
>Somebody please help me ..
>
>Regards,
>Deepak
>
>
>
>





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.

Re: Réf. : Re: Very Very Slow performance of Tomcat

Posted by Antonio Fiol Bonnín <fi...@terra.es>.
meissa.Sakho@assetmanagement.natexis.fr wrote:

>Antonio,
>
>I'm facing to the same performance problems with Tomcat.
>
>My the maxProcessor value is equal to 75 while
>the Apache's MaxClients is equals to 150.
>the MaxKeepAliveRequests of apache is equal to 100
>
>Do you understand the relationship between theses attributes ?
>  
>

MaxClients is the maximum number of Apache processes you can have.

Each Apache process "connects" to a processor in Tomcat. Make your own 
calculations ;-)

MaxKeepAliveRequests is something completely unrelated, as far as it is 
not below the average number of components (images, ...) of your pages. 
It's the max number of requests an Apache process will serve to you 
before closing the HTTP connection. My advice: Don't play too much with 
it, unless you have very high loads and really need to.  ;-)

netstat -n --tcp | grep SYN_RECV
on tomcat side while you are having the performance problems / apparent 
hangs.

If there are more than 3 connections in that state, you may be suffering 
from lack of processors.
Try raising maxProcessors to 150 if it is the case. (Or lowering 
MaxClients to 75 if your load is very light)

Tip: Have you got a stateful inspection firewall in the middle? If so, 
raising maxProcessors may not be enough. Tell me and I'll explain more.



Antonio Fiol