Hello,

Look back at your config. It says 5 threads minimum, so at elast 6 processes are spawned when apache is started : the main process and 5 childs. Your config says 50 max, so at maximum there would be 50 threads... Normally, there's another config option that states how many threads are started at startup (in apache 1.3 at least..) so that's why there is a certain number of childs that are started straight... (18 in your case) It's better, anyway, because in case of a peak the system will be ready to answer a lot of requests. If you don't want that many processes running, just lower your maxSparesTHreads



Krist van Besien a écrit :
Hello,

On aLinux system I have an Apache, with multi threaded worker, and the
following in the conifg:

<IfModule worker.c>
StartServers         1
MaxClients         50
MinSpareThreads     5
MaxSpareThreads     50
ThreadsPerChild     5
MaxRequestsPerChild  100000
</IfModule>

Just after having started though I notive quite a few processes:


root     28544     1  5 10:09 ?        00:00:02 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28546 28544  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28547 28544  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28548 28547  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28550 28548  1 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28551 28548  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28552 28548  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28553 28548  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28554 28548  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28555 28548  0 10:09 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28592 28544  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28593 28592  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28595 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28596 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28597 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28598 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28599 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4
apache   28600 28593  0 10:10 ?        00:00:00 /usr/sbin/apache2 -k
start -D SSL -D PHP4


Why is that? I would have expected only two: The main process, and one
child. The server is serving no requests, so should not be spawning
additional children.

Krist



--
Jean-Christophe Montigny
Responsable Commission Web, Association Planètes
Responsable serveurs assoces.com, Association Planètes
Etudiant de deuxième année à Grenoble Ecole de Management
Majeure Conseil en Organisation des Systèmes d'Information

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to