Categories:
Audio (13)
Biotech (29)
Bytecode (35)
Database (77)
Framework (7)
Game (7)
General (512)
Graphics (53)
I/O (32)
IDE (2)
JAR Tools (86)
JavaBeans (16)
JDBC (89)
JDK (337)
JSP (20)
Logging (103)
Mail (54)
Messaging (8)
Network (71)
PDF (94)
Report (7)
Scripting (83)
Security (32)
Server (119)
Servlet (17)
SOAP (24)
Testing (50)
Web (19)
XML (301)
Other Resources:
sun.tools.jcmd.JCmd - "jcmd" Command
How to run "jcmd" command from JDK tools.jar file?
✍: FYIcenter
"jcmd" command allows you to list all running JVM processes on your computer system
and interact with them.
"jcmd" command is supported by the lib\tools.jar JAR file JDK 1, 2, 3, 4, 5, 6, 7, and 8.
You can run the "jcmd" command using the JDK tools.jar file as described below using JDK 8 as an example:
C:\fyicenter>set JDK_HOME=\fyicenter\jdk-1.8.0_191 C:\fyicenter>%JDK_HOME%\bin\java -cp %JDK_HOME%\lib\tools.jar sun.tools.jcmd.JCmd -h Usage: jcmd <pid | main class> <command ...|PerfCounter.print|-f file> or: jcmd -l or: jcmd -h command must be a valid jcmd command for the selected jvm. Use the command "help" to see which commands are available. If the pid is 0, commands will be sent to all Java processes. The main class argument will be used to match (either partially or fully) the class used to start Java. If no options are given, lists Java processes (same as -p). PerfCounter.print display the counters exposed by this process -f read and execute commands from the file -l list JVM processes on the local machine -h this help
Â
⇒ sun.tools.jinfo.JInfo - "jinfo" Command
⇠sun.security.tools.jarsigner.Main - "jarsigner" Command
2019-11-21, 1662👍, 0💬
Popular Posts:
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...