Set Maximum Apache child processes per user

dhm

Verified User
Joined
Mar 31, 2014
Messages
8
When I set the MaxRequestWorkers to 20, all the Apache Child processes cannot be more then 20. But, that means if one users used all of the 20, the rest of the users are also not allowed to make more apache child process.

I want to set this up on a per user basis. If user John created 20 processes, and user jane only 5, she can still create up to 20.

How can I achieve this?
 
Via "httpd -V" I found out the "Server MPM" is "prefork". I edited the file "/etc/httpd/conf/extra/httpd-mpm.conf", adding several settings in the "<IfModule mpm_prefork_module> ... </IfModule>"

These are the settings I added:

RLimitCPU 60 120
RLimitMEM 10000000 10000000
RLimitNPROC 15 15

But, these are not in effect for some reason???

I tested this, and the user 'John' as 20 child httpd processes? And they seem to close only when they are finished.

I restarted httpd, checked the http://servername/server-info page and the settings I added, are being recognized, and seem to suggest that they are in effect?

But, the processes are still running?

Right now I created 34 processes, and there seems to be no limitation at all?
 
Back
Top