users@glassfish.java.net

Re: How to Trouble-Shoot Infinite Loop in Glassfish

From: <glassfish_at_javadesktop.org>
Date: Fri, 14 Nov 2008 09:08:28 PST

Is there a reason you wouldn't just signal a thread dump and check out the running threads consuming cpu time and see what's on their stack?

You can use sendsignal (http://www.latenighthacking.com/projects/2003/sendSignal/)

or VisualVM or Jconsole to get the threaddumps.

You could also utilize something like findbugs / checkstyle / pmd to run an analysis against your code to look for infinite-loop scenarios.

HTH,
Andrew
[Message sent by forum member 'areplogle' (areplogle)]

http://forums.java.net/jive/thread.jspa?messageID=316806