i'm having problems with out of memory errors in a large application migrated to jboss from jrun. From a thread in this forum started by tripperm, who had the same problem, I'm guessing the problem is db connections and statements. I know the app has problems not closing all connections and statements but it will be a difficult task to catch all the spots when that happens ( very messy code ). It seems that wasn't a problem in jrun !
Is there a way to be sure about the cause of the problem ? Any diagnostic tools to be run after the server dies ? Is there a way to make it faster to narrow the offending pieces of code ?