You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by sharath reddy <re...@gmail.com> on 2006/11/09 18:29:37 UTC

[users@httpd] Apache starting with more child processes thatn startservers directive

Hi All,

I am using Apache version 2.0.55(with prefork) on Linux with three different
httpd.conf files running on 3 different ports and i just loading httpd
multiple times with one config file for each port.

The problem is *:* when i start the apache, it is starting with 3 times more
child processes than the StartServers directive. i.e., if i keep
StartServers as 5 , it is starting with 15 child processes(servers).

what would be the problem for this behaviour?? (even though the apache
starts with more serevrs, it is working fne)

Thanks

Re: [users@httpd] Apache starting with more child processes thatn startservers directive

Posted by sharath reddy <re...@gmail.com>.
Hi Joshua,

I checked the server with server-status and it is showing only 5 child
processes, but at the same time on the server box it is showing 15
processes(with ps -ef).
By analyzing, i came to a conclusion that ....

1. In the server status page it is only showing child processes, which have
their parent id is same as of root process id, like shown below


USER      PID    PPID
www      13870        0
www      13873 13870
www      13876 13870
www      13877 13870
www      13879 13870
www      13899 13870

2.on the server, it is showing 15 child processes(each child creating one or
more child processes and randomly) on the start up and with in a 2 minutes
the child processes are increasing to 48, even though server serving for
only one request(server-status page). All the child processes are staying
alive till i stop the server.

Thanks,
Sharath






On 11/10/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 11/10/06, sharath reddy <re...@gmail.com> wrote:
> > Hi joshua,
> >
> > i am just starting one instance only, even then it is showing
> 3*StartServers
> > processes and one parent process running. if i starts 3 instances, it is
> > showing 3*StartServers for every idividual instance.
>
> Try firing up mod_status's server-status handler and see what the
> processes are doing.
>
> 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] Apache starting with more child processes thatn startservers directive

Posted by Joshua Slive <jo...@slive.ca>.
On 11/10/06, sharath reddy <re...@gmail.com> wrote:
> Hi joshua,
>
> i am just starting one instance only, even then it is showing 3*StartServers
> processes and one parent process running. if i starts 3 instances, it is
> showing 3*StartServers for every idividual instance.

Try firing up mod_status's server-status handler and see what the
processes are doing.

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] Apache starting with more child processes thatn startservers directive

Posted by sharath reddy <re...@gmail.com>.
Hi joshua,

i am just starting one instance only, even then it is showing 3*StartServers
processes and one parent process running. if i starts 3 instances, it is
showing 3*StartServers for every idividual instance.

here is my directory structure....

build: /opt/apache2 --> here is goes all the stuf including ...
bin, build, cgi-bin, conf.example, error, htdocs, icons, include, lib, logs,
Makefile, man, manual, modules

(installation)server root: /opt/web/apache  --> here .....
bin, cgi-bin, conf(httpd1.conf, httpd2.conf, httpd3.conf), docroot, log,
modules, run,  scripts, ssl

i wrote a script which calls the httpd multiple times with one config file
for each port
(script goes like ...... /opt/apache2/bin/apachectl -f
/opt/web/apache/conf/httpd1.conf -k start,
and ..... httpd2.conf -k start..... httpd3.conf -k start) , and it just
seems to be working.

Thanks,
Sharath



On 11/10/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 11/9/06, sharath reddy <re...@gmail.com> wrote:
> > Hi All,
> >
> > I am using Apache version 2.0.55(with prefork) on Linux with three
> different
> > httpd.conf files running on 3 different ports and i just loading httpd
> > multiple times with one config file for each port.
> >
> > The problem is : when i start the apache, it is starting with 3 times
> more
> > child processes than the StartServers directive. i.e., if i keep
> > StartServers as 5 , it is starting with 15 child processes(servers).
> >
> > what would be the problem for this behaviour?? (even though the apache
> > starts with more serevrs, it is working fne)
>
> Well, there are still lots of details missing in this question.  If
> you are starting 3 instances of apache, you should expect
> 3*StartServers processes to be running.  The three instances will be
> entirely independent.  If that is not what you are seeing, you need to
> be more specific about your problem.
>
> 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] Apache starting with more child processes thatn startservers directive

Posted by Joshua Slive <jo...@slive.ca>.
On 11/9/06, sharath reddy <re...@gmail.com> wrote:
> Hi All,
>
> I am using Apache version 2.0.55(with prefork) on Linux with three different
> httpd.conf files running on 3 different ports and i just loading httpd
> multiple times with one config file for each port.
>
> The problem is : when i start the apache, it is starting with 3 times more
> child processes than the StartServers directive. i.e., if i keep
> StartServers as 5 , it is starting with 15 child processes(servers).
>
> what would be the problem for this behaviour?? (even though the apache
> starts with more serevrs, it is working fne)

Well, there are still lots of details missing in this question.  If
you are starting 3 instances of apache, you should expect
3*StartServers processes to be running.  The three instances will be
entirely independent.  If that is not what you are seeing, you need to
be more specific about your problem.

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] Apache starting with more child processes thatn startservers directive

Posted by sharath reddy <re...@gmail.com>.
Hi Joshua,

here are the settings for prefork....

<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients         150
MaxRequestsPerChild  0
</IfModule>

Thanks,
Sharath


On 11/9/06, Joshua Slive <jo...@slive.ca> wrote:
>
> On 11/9/06, sharath reddy <re...@gmail.com> wrote:
> > Hi All,
> >
> > I am using Apache version 2.0.55(with prefork) on Linux with three
> different
> > httpd.conf files running on 3 different ports and i just loading httpd
> > multiple times with one config file for each port.
> >
> > The problem is : when i start the apache, it is starting with 3 times
> more
> > child processes than the StartServers directive. i.e., if i keep
> > StartServers as 5 , it is starting with 15 child processes(servers).
> >
> > what would be the problem for this behaviour?? (even though the apache
> > starts with more serevrs, it is working fne)
>
> What is MinSpareServers set at?
>
> 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] Apache starting with more child processes thatn startservers directive

Posted by Joshua Slive <jo...@slive.ca>.
On 11/9/06, sharath reddy <re...@gmail.com> wrote:
> Hi All,
>
> I am using Apache version 2.0.55(with prefork) on Linux with three different
> httpd.conf files running on 3 different ports and i just loading httpd
> multiple times with one config file for each port.
>
> The problem is : when i start the apache, it is starting with 3 times more
> child processes than the StartServers directive. i.e., if i keep
> StartServers as 5 , it is starting with 15 child processes(servers).
>
> what would be the problem for this behaviour?? (even though the apache
> starts with more serevrs, it is working fne)

What is MinSpareServers set at?

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