You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by kulbir Saini <ku...@gmail.com> on 2009/03/07 16:34:41 UTC

Tuning worker MPM

Hi,

we have a web server with two apache instances running on that. Experiencing
high load on server and the "top" shows httpd's taking CPU. The httpd.conf
worker setting is -

<IfModule worker.c>
#ServerLimit         25
StartServers         2
MaxClients         300
MinSpareThreads     75
MaxSpareThreads    250
ThreadsPerChild     25
MaxRequestsPerChild  20000
</IfModule>


Looking at server resources, we dont find any memory issue & no swapping
seen. the "vmstat" output shows that the run queue("r") increases higher
thatn the number of CPU's on the server. Server has 2 dual Core Intel(R)
Xeon(TM) CPU 3.06GHz.

I feel since processes are going in CPU run queue it may happen apache is
not tunned properly to handle requests though we dont see any crunch on
server resources.


Any suggestions?

Also i would like to know the thumb rule calculations for
configuring/tunning worker threads i..e how to decide on values for
ServerLimit, Maxclient, Minspare threads ect etc.


Thanks in advance

Kulbir

Re: Tuning worker MPM

Posted by kulbir Saini <ku...@gmail.com>.
i already got that update..

kulbir

On Sun, Mar 8, 2009 at 1:39 PM, André Warnier <aw...@ice-sa.com> wrote:

> kulbir Saini wrote:
> [...]
>
> You have just bought a Ford car, and you are calling the General Motors
> distributor about a problem with it.  Even assuming there's still
> someone there to answer your call, they won't be able to help you.
> ;-)
>
> In other words, Kulbir Saini, you are posting to the wrong list.
> This list is for the Tomcat Java servlet server.
> Apache webserver (or httpd) related questions should go to the Apache
> httpd user list. See "http://httpd.apache.org" for details.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Tuning worker MPM

Posted by André Warnier <aw...@ice-sa.com>.
kulbir Saini wrote:
[...]

You have just bought a Ford car, and you are calling the General Motors
distributor about a problem with it.  Even assuming there's still
someone there to answer your call, they won't be able to help you.
;-)

In other words, Kulbir Saini, you are posting to the wrong list.
This list is for the Tomcat Java servlet server.
Apache webserver (or httpd) related questions should go to the Apache
httpd user list. See "http://httpd.apache.org" for details.



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


Re: Tuning worker MPM

Posted by kulbir Saini <ku...@gmail.com>.
httpd -l output is

Compiled in modules:
  core.c
  worker.c
  http_core.c
  mod_so.c



We are in worker mode.



Thanks
Kulbir

On Sat, Mar 7, 2009 at 11:55 AM, Martin Gainty <mg...@hotmail.com> wrote:

>
> quoting the httpd doc
> "Prefork and worker are mutually exclusive modules.  How did you compile
> Apache? "
>  Check the output of "httpd -l".
>
> find out which module you have compiled into your server then tune the
> settings for that module
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and Sender
> does not endorse distribution to any party other than intended recipient.
> Sender does not necessarily endorse content contained within this
> transmission.
>
>
>
>
> > Date: Sat, 7 Mar 2009 10:34:41 -0500
> > Subject: Tuning worker MPM
> > From: kulbir.saini1@gmail.com
> > To: users@tomcat.apache.org
> >
> > Hi,
> >
> > we have a web server with two apache instances running on that.
> Experiencing
> > high load on server and the "top" shows httpd's taking CPU. The
> httpd.conf
> > worker setting is -
> >
> > <IfModule worker.c>
> > #ServerLimit         25
> > StartServers         2
> > MaxClients         300
> > MinSpareThreads     75
> > MaxSpareThreads    250
> > ThreadsPerChild     25
> > MaxRequestsPerChild  20000
> > </IfModule>
> >
> >
> > Looking at server resources, we dont find any memory issue & no swapping
> > seen. the "vmstat" output shows that the run queue("r") increases higher
> > thatn the number of CPU's on the server. Server has 2 dual Core Intel(R)
> > Xeon(TM) CPU 3.06GHz.
> >
> > I feel since processes are going in CPU run queue it may happen apache is
> > not tunned properly to handle requests though we dont see any crunch on
> > server resources.
> >
> >
> > Any suggestions?
> >
> > Also i would like to know the thumb rule calculations for
> > configuring/tunning worker threads i..e how to decide on values for
> > ServerLimit, Maxclient, Minspare threads ect etc.
> >
> >
> > Thanks in advance
> >
> > Kulbir
>
> _________________________________________________________________
> Windows Live™ Contacts: Organize your contact list.
>
> http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009<http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns%21503D1D86EBB2B53C%212285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009>

RE: Tuning worker MPM

Posted by Martin Gainty <mg...@hotmail.com>.
quoting the httpd doc
"Prefork and worker are mutually exclusive modules.  How did you compile Apache? "
 Check the output of "httpd -l".

find out which module you have compiled into your server then tune the settings for that module

Martin 
______________________________________________ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. 




> Date: Sat, 7 Mar 2009 10:34:41 -0500
> Subject: Tuning worker MPM
> From: kulbir.saini1@gmail.com
> To: users@tomcat.apache.org
> 
> Hi,
> 
> we have a web server with two apache instances running on that. Experiencing
> high load on server and the "top" shows httpd's taking CPU. The httpd.conf
> worker setting is -
> 
> <IfModule worker.c>
> #ServerLimit         25
> StartServers         2
> MaxClients         300
> MinSpareThreads     75
> MaxSpareThreads    250
> ThreadsPerChild     25
> MaxRequestsPerChild  20000
> </IfModule>
> 
> 
> Looking at server resources, we dont find any memory issue & no swapping
> seen. the "vmstat" output shows that the run queue("r") increases higher
> thatn the number of CPU's on the server. Server has 2 dual Core Intel(R)
> Xeon(TM) CPU 3.06GHz.
> 
> I feel since processes are going in CPU run queue it may happen apache is
> not tunned properly to handle requests though we dont see any crunch on
> server resources.
> 
> 
> Any suggestions?
> 
> Also i would like to know the thumb rule calculations for
> configuring/tunning worker threads i..e how to decide on values for
> ServerLimit, Maxclient, Minspare threads ect etc.
> 
> 
> Thanks in advance
> 
> Kulbir

_________________________________________________________________
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009

Re: Tuning worker MPM

Posted by Mark Thomas <ma...@apache.org>.
kulbir Saini wrote:
> Any suggestions?

Try the httpd users list?

Mark



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