I don't think that is good enough. The OOM is preceeded by 1 hour of almost continious
garbage collection and then something dies, but you can't predict what. I don't
see how a service can check whether everything is alive. Even trying an uncaught on the
ThreadGroup will probably get killed.
The only thing I've found to be working is an external program monitoring the log file
for OOM.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028179#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...