Situation
Every once and a while my application seems to be freezing. The only indication of this that I get is that my browser will say "Waiting for localhost...". If I restart my browser and access my application it continues waiting. The only solution so far has been to turn off Tomcat then turn it back on. The problem then vanishes. I'm very confident this is a server side process that has taken over and nothing client-side.
Problem
Rather than only analyzing my code it would be nice to actually inspect what is Tomcat doing or working on at any given time, kind of like a "Tomcat Task manager"
. I suspect some process running in the background with the JVM is the culprit but I'm not sure how to go about analyzing that.
Questions
What's the best way of looking at what the Tomcat is doing when no web requests are being made?
Any idea what background process or threads I should look into as a possible culprit?
Possible Cause of Problem:
This problem started as soon as I started using a singleton across multiple pages. Before I commit to that as the cause I'd like to track down where the freezing is actually taking place.