Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a WHM plugin mode or something like that which would limit the amount of resources a user on a dedicated server can use (CPU and RAM) or ideally something which gives certain users priority access to the resources needed?

Because my problem is that some websites sometimes use all the CPU available (through MySQL) and then the other sites are very slow...

The closest thing I could think of would be CloudLinux. It allows you to limit how much CPU/memory a site may use before it gets capped, however it does not limit MySQL usage, pretty much just PHP. You could limit every site on the server to a specific amount of open process/CPU besides the one you want to have more resources.

share|improve this question
  • MySQL resource limiting -- per user, but not very fine-grained. Controls things like number of queries per hour. Userful as a hard upper limit, but doesn't apportion resources well or distinguish how intensive queries are to the server.
  • MySQL Governor in CloudLinux monitors the user resource use on the server and adapts accordingly. It can be aware of CPU and slow query usage. If you don't want to change Linux distributions, you may be able to emulate that functionality. The individual package itself might also be under a free license. It was hard to say.
  • Apache has limits for memory and CPU use. You can set those limits for each vhost.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.