jvisualvm
Java Virtual Machine Monitoring, Troubleshooting, and Pro-filing Tool. Java VisualVM is an intuitive graphical user interface that provides
detailed information about Java technology-based applications (Java
applications) while they are running on a given Java Virtual Machine
(JVM(*)). The name Java VisualVM comes from the fact that Java VisualVM
provides information about the JVM software visually
jhat (Java Heap Analysis Tool)
The jhat command parses a java heap dump file and launches a webserver.
Jhat enables you to browse heap dumps using your favorite webbrowser.
jhat supports pre-designed queries (such as 'show all instances of a
known class "Foo"') as well as OQL (Object Query Language) - a SQL-like
query language to query heap dumps.
Syntax: jhat
eg: jhat /Users/mayankmohan/heap.bin.hprof.bin
jconsole
The jconsole command launches a graphical console tool that enables you to monitor and manage Java applications and virtual machines on a local or remote machine.
jmap
jmap prints shared object memory maps or heap memory details of a given process or core file or remote debug server.
Syntax: jmap -dump:live,file=
eg: jmap -dump:live,file=heap.bin