Re: Multiple httpd processes?


Subject: Re: Multiple httpd processes?
From: Peter M. Bagnall (pete@surfaceeffect.com)
Date: Mon Feb 04 2002 - 18:35:39 MST


Firstly, no need to be concerned, this is just as it should be.

When apache is started the process (2902 in your list) spawns a number of
child processes. These are the ones which actually serve up pages. 2902 is
simply passing requests out to the next available child. By doing this the
system can serve multiple requests simultaneously, which on a system which
gets lots of hits improves performance no end. You can tweak the httpd.conf
file to adjust how many of these children get spawned, but to be honest,
unless your system is very slow I'd not bother.

Hope that answers your question

Pete

At 19:11 2/4/2002 -0500, you wrote:
>What's going on here? I use the /etc/init.d/rc.d/httpd script to
>start/stop apache. Here's part of my ps -aux output:
>
>root 2902 0.0 3.2 8500 4464 ? S Feb02 0:05
>/usr/sbin/httpd - ...
>apache 3480 0.0 3.3 8796 4708 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 3481 0.0 3.4 8796 4848 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 3482 0.0 3.3 8804 4716 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 3483 0.0 3.3 8804 4716 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 3484 0.0 3.4 8860 4756 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 3485 0.0 3.3 8804 4716 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 3486 0.0 3.3 8804 4712 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 3487 0.0 3.3 8796 4712 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 7817 0.0 3.3 8784 4680 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 7818 0.0 3.3 8796 4708 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7819 0.0 3.3 8796 4708 ? S Feb03 0:02
>/usr/sbin/httpd - ...
>apache 7820 0.0 3.3 8784 4680 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7821 0.0 3.3 8784 4680 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7822 0.0 3.3 8784 4676 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7823 0.0 3.3 8784 4680 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 7824 0.0 3.3 8784 4680 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7825 0.0 3.3 8784 4680 ? S Feb03 0:01
>/usr/sbin/httpd - ...
>apache 7826 0.0 3.3 8796 4712 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7827 0.0 3.3 8784 4680 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>apache 7828 0.0 3.3 8796 4708 ? S Feb03 0:00
>/usr/sbin/httpd - ...
>
>:::
>
># Zeke Runyon, zrunyon@mac.com
># web: http://communistsquirrel.home.dhs.org/ (formerly zekeworld)
># linux: http://gloin.dyn.dhs.org/, email: zekemon@gloin.dyn.dhs.org
># PGP key fingerprint = 7084 3BA2 9BC3 9024 2840 F0AF B9F4 37EB 827E 6A7D
># ...I am ZEKE squirrel king, lord of woodland fauna...



This archive was generated by hypermail 2a24 : Mon Feb 04 2002 - 18:51:32 MST