jstat

Thejstat utility can be used to tune the Java heap
size and diagnose performance issues related to heap and garbage collection.
This utility can be used without any server configuration changes as the VM
instrumentation is enabled by default. For more information, see http://java.sun.com/j2se/1.5.0/docs/tooldocs/share/jstat.html.