Limit the number of apache processes spawned

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Limit the number of apache processes spawned

Postby mchojrin » 06. April 2010 15:17

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!
mchojrin
 
Posts: 5
Joined: 28. January 2009 17:05

Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 6 guests