httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Individual . ." <individ...@mi.cl>
Subject Re: [users@httpd] several instances of httpd running- is this normal?
Date Mon, 03 Feb 2003 17:18:15 GMT

On Monday, February 3, 2003, at 02:07 PM, Jim Sheffer wrote:

> I took a look at processes on the machine (MacOSX) and noticed several
> instances of httpd running simutaniously.  this isn't right, is it?
>

Yes, I believe it is. The parent process runs as root, which spawns 
child processes which run as www:www.
You can set how many child processes (min / max) to spawn in httpd.conf.

Look at my ps auux | grep httpd:

root       397   0.0  0.1     4956    232  ??  Ss   Sat02AM   0:14.98 
/usr/sbin/httpd
www        399   0.0  0.2     4956    740  ??  S    Sat02AM   0:00.88 
/usr/sbin/httpd
www        806   0.0  0.2     4956    728  ??  S    Sat08AM   0:00.96 
/usr/sbin/httpd
www        807   0.0  0.2     4956    704  ??  S    Sat08AM   0:00.81 
/usr/sbin/httpd
www        854   0.0  0.2     4956    748  ??  S    Sat03PM   0:00.41 
/usr/sbin/httpd
www       1061   0.0  0.2     4956    680  ??  S    Sun01AM   0:00.17 
/usr/sbin/httpd

And my httpd.conf file:

#
# Server-pool size regulation.  Rather than making you guess how many
# server processes you need, Apache dynamically adapts to the load it
# sees --- that is, it tries to maintain enough server processes to
# handle the current load, plus a few spare servers to handle transient
# load spikes (e.g., multiple simultaneous requests from a single
# Netscape browser).
#
# It does this by periodically checking how many servers are waiting
# for a request.  If there are fewer than MinSpareServers, it creates
# a new spare.  If there are more than MaxSpareServers, some of the
# spares die off.  The default values are probably OK for most sites.
#
MinSpareServers 1
MaxSpareServers 5

#
# Number of servers to start initially --- should be a reasonable 
ballpark
# figure.
#
StartServers 1

Paul


---------------------------------------------------------------------
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


Mime
View raw message