Does anyone know if it is possible to limit the CPU / Memory usage server wide? So that at any one time no proccess can use over say 5% of the servers resources? I think that would help my server load quite a bit, if anyone could tell me if that is possible to do or how it is done I would be VERY greatful!
This can be done on user limits, but for processes every process gets a time slice of the CPU which you can modify based on what type of load you have on the server (i.e. batch programs, interactive, etc.). If you "kick" a process off as a certain user, then that users time and resources for all processes will be based off of the ulimit values.
However, it isn't a pretty sight to reach a limit and if you start killing processes you'll have a schizophrenic server and no clients left. It will take more work, but you should record performance data at different time intervals over a week and see what processes are doing the damage. Notify the clients and (whatever).
Can you give more info about what the server is used for?
I host a large amount of smaller sites just basic html some cgi and mysql. However some times there is a large httpd proccess or mysql proccess or even a webalizer proccess that overloads the server. Is there a way I can limit all of the users to a certain % of resources? Or can that only be done individually?