java:debug

Debugging in Java

On the command line:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
  • address the address to listen to. 8000 is a common value but can be changed at will.
  • suspend if the JVM should wait for a debugger to connect before starting execution.

You should now be able to connect to the instance using Eclipse.

Command Description
jstat Show GC information about a running process.
jps Show process id of running java applications.
jvisulavm Gui for showing threads, objects and b´memory from running instances.
  • java/debug.txt
  • Last modified: 2011-08-30 18:34
  • by 127.0.0.1