Mobile app version of vmapp.org
Login or Join
Shelton105

: Installing mpm_worker for Apache and configuring pre_main_global.conf doesn't seem to work I just installed mpm_worker for Apache and added this to pre_main_global.conf: <IfModule worker.c> ServerLimit

@Shelton105

Posted in: #Apache

I just installed mpm_worker for Apache and added this to pre_main_global.conf:

<IfModule worker.c>
ServerLimit 40
StartServers 2
MaxClients 1000
MinSpareThreads 20
MaxSpareThreads 50
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>


To test to see if this actually works, I changed the variable and restarted Apache.

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


To my surprise my busy site still responds as normal. I tested this on multiple browsers and deleted all the cache. What did I do wrong?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelton105

1 Comments

Sorted by latest first Latest Oldest Best

 

@Turnbaugh106

What is the output of ./httpd -l?

I think your answer is here: httpd.apache.org/docs/2.0/mpm.html

"MPMs must be chosen during configuration, and compiled into the
server. Compilers are capable of optimizing a lot of functions if
threads are used, but only if they know that threads are being used."

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme