Skip to content

Instantly share code, notes, and snippets.

Created September 30, 2016 07:31
What would you like to do?
Java too much open files; restart and notify
*/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