Basic Tools –
java
- The launcher for Java applicationsjavac
- The compiler for the Java programming languagejavadoc
- API documentation generator
In Eclipse IDE, Navigate toProject
menu, and clickGenerate Javadoc
to a target folder.
this'll generate the javadoc, look for index.html, open it in web-browser, and we can see the documents generated,
we can host the same on web server or roll-out to clients if requiredjavah
- C header and stub generator. Used to write native methodsjavap
- Class file disassembler
This gives us thestructure of a java program
(either user program or JDK classes like String, Object etc)jdp
- The Java Debuggerjdeps
- Java class dependency analyzer
Java Troubleshooting, Profiling, Monitoring and Management Tools –
jcmd
- JVM Diagnostic Commands tool - Sends diagnostic command requests to a running Java Virtual Machinejconsole
- A JMX-compliant graphical tool for monitoring a Java virtual machine.
It can monitor both local and remote JVMsjmc
- TheJava Mission Control
(JMC) client includes tools to monitor and manage your Java application
without introducing the performance overhead normally associated with these types of tools.jvisualvm
- A graphical tool that provides detailed information about the Java technology-based applications,
while they are running in a Java Virtual Machine.
Java VisualVM provides memory and CPU profiling, heap dump analysis, memory leak detection, access to MBeans,
and garbage collection
Monitoring Tools –
jps
- Experimental: JVM Process Status Tool - Lists instrumented HotSpot Java virtual machines on a target systemjstat
- Experimental: JVM Statistics Monitoring Tool - Attaches to an instrumented HotSpot Java virtual machine
and collects and logs performance statistics as specified by the command line options.jstatd
- Experimental: JVM jstat Daemon - Launches an RMI server application that monitors for the creation and
termination of instrumented HotSpot Java virtual machines and provides a interface to allow remote monitoring tools
to attach to Java virtual machines running on the local system
Troubleshooting Tools –
jhat
- Experimental - Heap Dump Browser - Starts a web server on a heap dump file
(for example, produced by jmap -dump), allowing the heap to be browsed.jmap
- Experimental - Memory Map for Java - Prints shared object memory maps or heap memory details
of a given process or core file or a remote debug server.jstack
- Experimental - Stack Trace for Java - Prints a stack trace of threads
for a given process or core file or remote debug server.
Reference: