java.lang.management Demonstration Code
- 
FullThreadDump
 Shows how to get thread dumps and look for deadlocks.
- 
VerboseGC
 Shows how you can find out about Garbage Collection in the VM.
- 
MemoryMonitor
 Shows how you can find out the memory usage in the VM.
- 
JTop
 Shows how you can find out the threads with top CPU usage.
Comments and Feedback
Comments regarding java.lang.management API or on any of these 
demonstrations should be sent through 
http://java.sun.com/mail/