Add new comment
|
Hello, I have an issue that perhaps you can assist me with. I have the following snippen in my monitrc file: check process myjavaapp with pidfile /tmp/myapp.pid start program = "/etc/init.d/myjavaapp start" with timeout 40 seconds stop program = '/etc/init.d/myjavaapp stop" if mem > 100 MB for 5 cycles then restart When the 100 MB threshold is reached by the application for 5 consecutive cycles, the application is restarted. When the application comes back up, if the memory is still over 100 MB, Monit doesn't wait for 5 cycles to restart, it reboots the aplication right away. Is there a way to get around this? Ideally, I want Monit to restart the cycle counter for this process after the reboot, and not reboot again for 5 more cycles. Please let me know if you have any suggestions that I could try! Your help is greatly appreciated!
Reply |



Recent comments
18 hours 59 min ago
22 hours 43 min ago
22 hours 53 min ago
22 hours 59 min ago
1 day 44 min ago
1 day 4 hours ago
1 day 16 hours ago
3 days 1 hour ago
3 days 5 hours ago
3 days 6 hours ago