Re: only one worker process

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'd like to make a multithreaded test and start only one worker process.
Can anybody help me with the proper configuration?

The MPM for above model should be worker MPM. Refer to this link
http://httpd.apache.org/docs/2.0/mod/worker.html

 
<IfModule worker.c>
       StartServers         1
       MinSpareThreads     25
       MaxSpareThreads     75
       ThreadLimit         64
       MaxClients         150
       ThreadsPerChild     25
       MaxRequestsPerChild  10000
</IfModule>

Add ServerLimit inside the above block and keep its value 1.
 
The apache compilation options are:

Server MPM:     Prefork
 threaded:     no
   forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"

Seems the apache is configured with prefork. That means multiple processes and not threads as you can see from above.
You might need to reconfigure and compile with following option
--with-mpm=worker

Good luck

-Pras

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux