Limiting user resource usage

elbarto

Verified User
Joined
Oct 8, 2008
Messages
133
Hi guys,

I'm trying to figure out the way of dealing with heavy users so that they don't affect the overall performance of my servers and to guarantee, as much as possible, an equal service for all my users.

Is there a way to limit the usage of CPU/RAM of either apache or php processes by user? I'm running Apache 2.2.17 with suPHP and PHP 5.2.17.

I've also seen in this forum a custom script to limit the resources of MySQL users. Have you tried that? What's your experience? Is it useful or does it create more troubles than it solves (with users complaining about the limits)?

I'd appreciate any insights on this. Thanks!
 
Note, that with pam_limits not everything can be limited. Apache has its own possibilities for limiting. Either (but not dealing with RAM and CPU directly) has MySQL and ProFTPd.
 
Thanks, I understand. I will see what can I do with pam_limits. I have other limits defined elsewhere, but I'm looking to improve my control over resource hogs.
 
Back
Top