You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2007/08/22 15:54:02 UTC

[users@httpd] limit the number of httpd processes on apache server

hi
I am using svn with apache2 and I noticed that the
number of httpd processes can go up to 300 processes
on the server leading to 0% CPU idle.

my objective is to limit the number of httpd processes
while other requests wait in a queue without being
dropped.

is this feasible? what are the parameters in httpd.conf?


      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
thanks bunches.

--- Joshua Slive <jo...@slive.ca> wrote:

> On 8/22/07, Melanie Pfefer
> <me...@yahoo.co.uk> wrote:
> > Many thanks Joshua.
> > APACHE_MPM_DIR="server/mpm/prefork"
> >
> > One more question if you don't mind: is there a
> > default value for backlog if it is not set? I want
> to
> > start with a value for tuning purposes and then
> > increase this value.
> 
> This:
>
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listenbacklog
> says the default is 511 but that the OS may override
> it.
> 
> Joshua.
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Joshua Slive <jo...@slive.ca>.
On 8/22/07, Melanie Pfefer <me...@yahoo.co.uk> wrote:
> Many thanks Joshua.
> APACHE_MPM_DIR="server/mpm/prefork"
>
> One more question if you don't mind: is there a
> default value for backlog if it is not set? I want to
> start with a value for tuning purposes and then
> increase this value.

This:
http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listenbacklog
says the default is 511 but that the OS may override it.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
Many thanks Joshua.
APACHE_MPM_DIR="server/mpm/prefork"

One more question if you don't mind: is there a
default value for backlog if it is not set? I want to
start with a value for tuning purposes and then
increase this value.

thanks again,

--- Joshua Slive <jo...@slive.ca> wrote:

> On 8/22/07, Melanie Pfefer
> <me...@yahoo.co.uk> wrote:
> > Thanks again Joshua.
> > Actually in httpd.conf, I have many occurences of
> > MaxClients:
> >
> >
> > # prefork MPM
> > ...
> > MaxClients         150
> > ...
> > # worker MPM
> > ...
> > MaxClients         150
> > ...
> >
> > # BeOS MPM
> > ...
> > MaxClients                 50
> > ...
> >
> > all of these should be replaced and add backlog?
> 
> You need to figure out which mpm you are using and
> edit that one. Most
> likely, if you are using a default install, you have
> the prefork mpm.
> But "apachectl -V" will tell you for sure.
> 
> Joshua.
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 



      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Joshua Slive <jo...@slive.ca>.
On 8/22/07, Melanie Pfefer <me...@yahoo.co.uk> wrote:
> Thanks again Joshua.
> Actually in httpd.conf, I have many occurences of
> MaxClients:
>
>
> # prefork MPM
> ...
> MaxClients         150
> ...
> # worker MPM
> ...
> MaxClients         150
> ...
>
> # BeOS MPM
> ...
> MaxClients                 50
> ...
>
> all of these should be replaced and add backlog?

You need to figure out which mpm you are using and edit that one. Most
likely, if you are using a default install, you have the prefork mpm.
But "apachectl -V" will tell you for sure.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
Thanks again Joshua.
Actually in httpd.conf, I have many occurences of
MaxClients:


# prefork MPM
...
MaxClients         150
...
# worker MPM
...
MaxClients         150
...

# BeOS MPM
...
MaxClients                 50
...

all of these should be replaced and add backlog?

thanks
--- Joshua Slive <jo...@slive.ca> wrote:

> On 8/22/07, Melanie Pfefer
> <me...@yahoo.co.uk> wrote:
> > thanks Joshua.
> >
> > can you please also tell us how to set these
> > parameters in httpd.conf?
> 
> That question is a little vague. I have no idea
> where you are starting
> at. Do you need instructions on how to use your
> editor? Do you not
> understand the basic format of the config files.
> 
> In general, those directives can go anywhere in the
> "main" part of the
> config file (outside any <Directory> or
> <VirtualHost> or other
> section). You may already have a MaxClients
> directive, in which case
> you should simply edit the existing one.
> 
> Joshua.
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Joshua Slive <jo...@slive.ca>.
On 8/22/07, Melanie Pfefer <me...@yahoo.co.uk> wrote:
> thanks Joshua.
>
> can you please also tell us how to set these
> parameters in httpd.conf?

That question is a little vague. I have no idea where you are starting
at. Do you need instructions on how to use your editor? Do you not
understand the basic format of the config files.

In general, those directives can go anywhere in the "main" part of the
config file (outside any <Directory> or <VirtualHost> or other
section). You may already have a MaxClients directive, in which case
you should simply edit the existing one.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
thanks Joshua.

can you please also tell us how to set these
parameters in httpd.conf?

thanks.
--- Joshua Slive <jo...@slive.ca> wrote:

> On 8/22/07, Melanie Pfefer
> <me...@yahoo.co.uk> wrote:
> > hi
> > I am using svn with apache2 and I noticed that the
> > number of httpd processes can go up to 300
> processes
> > on the server leading to 0% CPU idle.
> >
> > my objective is to limit the number of httpd
> processes
> > while other requests wait in a queue without being
> > dropped.
> >
> > is this feasible? what are the parameters in
> httpd.conf?
> 
> MaxClients and ListenBacklog are the directives to
> look at in the docs.
> 
> Joshua.
> 
>
---------------------------------------------------------------------
> The official User-To-User support forum of the
> Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for
> more info.
> To unsubscribe, e-mail:
> users-unsubscribe@httpd.apache.org
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org
> 
> 



      ___________________________________________________________ 
Want ideas for reducing your carbon footprint? Visit Yahoo! For Good  http://uk.promotions.yahoo.com/forgood/environment.html

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] limit the number of httpd processes on apache server

Posted by Joshua Slive <jo...@slive.ca>.
On 8/22/07, Melanie Pfefer <me...@yahoo.co.uk> wrote:
> hi
> I am using svn with apache2 and I noticed that the
> number of httpd processes can go up to 300 processes
> on the server leading to 0% CPU idle.
>
> my objective is to limit the number of httpd processes
> while other requests wait in a queue without being
> dropped.
>
> is this feasible? what are the parameters in httpd.conf?

MaxClients and ListenBacklog are the directives to look at in the docs.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org