I know that this is not \"best practice\" but I would like to know if I can auto restart tomcat if my deployed app throws an outofmemory exception
I use
-XX:OnOutOfMemoryError='pkill java;/usr/local/tomcat/bin/start.sh'