hi, hi, hi little drooguies
I have the following scenario: Delayed job is being monitored by GOD, and sometimes it consumes tons of memory, so I restart the daemon, and voila, everything back to normal. Point is I don't want to restart the daemon while it's executing a task. The task will be forever locked, and will never be completed. I would like to restart the daemon if the amount of memory exceeds X Mbytes and process is idle (wich means no task is being processed). Is there any chance I can build a restart condition based on the amount of memory and, at the same time, how much cpu is consuming? I did it with monit, if memory higher than X, then exec some script that will check if its idle, if it is, restart it, if it's not, do nothing. sorry about the bad english, brazilian monkey typing for help. No bananas please, just answers. thanks in advance --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "god.rb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/god-rb?hl=en -~----------~----~----~----~------~----~------~--~---
