Welcome to WebmasterWorld Guest from 54.166.54.215

Forum Moderators: Ocean10000 & incrediBILL & phranque

cron to kill any long running processes

   
1:28 pm on Oct 9, 2012 (gmt 0)

5+ Year Member



We have a really weird thing where by a particular file occasionally wont stop processing.

This process chews up RAM and then load spikes and brings the server to it's knees.

We simply can't work out what the issue is.

Is there something we can run that periodically check to see if any processes have been going for > N minutes and then kills them?

We have set timeouts etc but they don't affect this random issue for some weird reason.

Thanks in advance.
2:25 pm on Oct 9, 2012 (gmt 0)

WebmasterWorld Senior Member wilderness is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Best of luck with crons.

Some months back I implemented some crons (which I had absolutely no understanding of) and had a difficult time finding assistance.

Don't recall the forum, however pretty sure it wasn't the Apache forum.
2:41 pm on Oct 9, 2012 (gmt 0)

5+ Year Member



poke around for "cron to kill runaway process"
3:44 pm on Oct 9, 2012 (gmt 0)

WebmasterWorld Administrator brotherhood_of_lan is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



[swoolley.org...]

If the process spawns children then that may be something to look at as they could still be running after the main script exits.
 

Featured Threads

My Threads

Hot Threads This Week

Hot Threads This Month