jcmd is a powerful new tool introduced in Java 7. Along with jstack
and jps
, it should be in your go-to tool for solving production problems on the JVM. (Come to think of it, with this tool you don't really need jps
anymore)
Here's an example session with jcmd
:
$ ssh wopr.qa.corp.local
$ jcmd -l
34739 sun.tools.jcmd.JCmd -l