Table of Contents

Debugging in Java

Enable remote debugging

On the command line:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

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

Useful command line tools

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.