Does anyone know how to limit the number of PHP processes allowed when using mod_fcgid?
What I would love to be able to do, and would help tremendously with the occasional server crash when a user gets slammed, is to be able to limit this.
Somehow say "once a user has 4 PHP-CGI's running, no more for that user. Sorry."
I'm happy with this being a single, server wide setting. Right now I'm using mod_fcgid. I don't want it to be "total per server" as that means one user could suck up all free slots and no one gets any more. I would like to be able to say "every user in the server gets up to (3,4,5) and if any user hits that number of PHP-CGI processes running, they don't get any more"
The way it is now it's possible a user gets creamed and then all the sudden they end up with 20 PHP's running and sucking up 1 GB or 2 which makes the server unhappy.
Steve
What I would love to be able to do, and would help tremendously with the occasional server crash when a user gets slammed, is to be able to limit this.
Somehow say "once a user has 4 PHP-CGI's running, no more for that user. Sorry."
I'm happy with this being a single, server wide setting. Right now I'm using mod_fcgid. I don't want it to be "total per server" as that means one user could suck up all free slots and no one gets any more. I would like to be able to say "every user in the server gets up to (3,4,5) and if any user hits that number of PHP-CGI processes running, they don't get any more"
The way it is now it's possible a user gets creamed and then all the sudden they end up with 20 PHP's running and sucking up 1 GB or 2 which makes the server unhappy.
Steve