Page 1 of 1

Limit the number of apache processes spawned

PostPosted: 06. April 2010 15:17
by mchojrin
Hi:

I'm trying to get my dev server (xampp) to spawn just one process to get all the requests. I added the following configuration:

Code: Select all
<IfModule prefork.c>
  StartServers            1
  MinSpareServers         1
  MaxSpareServers         1
  MaxClients              1
  MaxRequestsPerChild  1000
</IfModule>

<IfModule worker.c>
  StartServers            1
  MaxClients              1
  MinSpareThreads         1
  MaxSpareThreads         1
  ThreadsPerChild         1
  MaxRequestsPerChild     0
</IfModule>

<IfModule mpm_winnt.c>
  ThreadsPerChild         1
  MaxRequestsPerChild     0
</IfModule>


At the end of my httpd.conf file, but every time I run
Code: Select all
ps -e | grep httpd
I get a list of three httpd processes running. I understand the latter two are children of the first, right? Anyway... how could I limit the processes (threads actually) to just one? Thanks!