Debugging hangs

Hangs refer to the JVM locking up or refusing to respond.

A hang can occur when:
  • Your application entered an infinite loop.
  • A deadlock has occurred
To determine which of these situations applies, open the Windows Task Manager and select the Performance tab. If the CPU time is 100% divided by the number of processors and your system is running very slowly, the JVM is very likely to have entered an infinite loop. Otherwise, if CPU usage is normal, you are more likely to have a deadlock situation.