httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanna Ram Venkatachalam <vpra...@gmail.com>
Subject Re: [users@httpd] only one worker process
Date Tue, 06 Sep 2011 12:58:03 GMT
>
> 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

Mime
View raw message