Portal Home > Knowledgebase > Articles Database > Kiling a process that is using too much cpu


Kiling a process that is using too much cpu




Posted by captain_squash, 07-12-2011, 02:04 PM
Hi there, I run Dedicated servers which are provisioned with vps's. I use Solusvm with OpenVZ. I'm not seeing anything in Solus that will stop a server that is using too much cpu power. Is there a script or program that will kill a process if the load reaches a particular amount over a particular period of time? IE: say the load is 20.00+ for over 10 minutes, could the process get killed?

Posted by Thomas Manning, 07-12-2011, 02:18 PM
You can better limit the resource usage by all the users using ulimit. ============ http://tldp.org/LDP/solrhe/Securing-...1.3/x4733.html ============

Posted by msparrow, 07-12-2011, 03:40 PM
Do you want to allow them to get to that point in the first place? If not, ulimit is your best bet. If you don't mind them spiking to that point, and then killing it after a duration, you should take a look at monit.

Posted by samjohn1969, 11-13-2011, 05:44 AM
is there anything we can do to automatic kill process in php if it taking too much time?

Posted by Lee-RackSRV, 11-14-2011, 02:06 PM
Theres: max_execution_time =; which sets the max amount of time a script is allowed to run, this will be terminated automatically once exceeded. This belongs in the php.ini on your server, make sure you reboot HTTPD after.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
compile apache (Views: 578)