Created
September 30, 2016 07:31
-
-
Save colegatron/d46f55e942710d452d4be599191167cd to your computer and use it in GitHub Desktop.
Java too much open files; restart and notify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/5 * * * * [ $( lsof -p $(pgrep java) | wc -l ) -gt 60000 ] && service tomcat7 restart && notify-adm "${HOSTNAME}: [ERROR] JVM open files limit reached, restarting." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment