Hunting down program freeze

I have a huge program that is occassionally freezing for no obvious reason. Best I can fiure is that swing EventListeners are causing an infinite loop of callbacks. There is no error message generated, and if I try to profile my project, the profiler is unable to keep up with the strain.

I'd like to figure out where the freeze is happening, but there is far too much code to add a lot of System.out.printf(). What can I do to track down any infinite loops?

I'm using NetBeans to develop.

Mark McKay

[529 byte] By [Mark_McKaya] at [2007-10-3 0:51:12]
# 1
HiHow about a kill -3 or ctrl+break to look @ the stacktrace?This will probably tell u what the code is doing @ this point.
fuishiena at 2007-7-14 17:46:17 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2
Since JDK1.5 there are many troubleshooting tools available with JDK: http://java.sun.com/j2se/1.5/pdf/jdk50_ts_guide.pdfI think 'jstack' can help you.
S.B.a at 2007-7-14 17:46:17 > top of Java-index,Archived Forums,Debugging Tools and Techniques...