Java 虚拟机工具 jps
官方网站:https://docs.oracle.com/javase/7/docs/technotes/tools/share/jps.html
The jps command supports a number of options that modify the output of the command. These options are subject to change or removal in the future.
- -q,Suppress the output of the class name, JAR file name, and arguments passed to the
main
method, producing only a list of local VM identifiers.
- -m,Output the arguments passed to the main method. The output may be null for embedded JVMs.
- -l,Output the full package name for the application's main class or the full path name to the application's JAR file.
- -v,Output the arguments passed to the JVM.
- -V,Output the arguments passed to the JVM through the flags file (the .hotspotrc file or the file specified by the -XX:Flags=<filename> argument).
- -Joption,Pass option to the java launcher called by jps.
For example, -J-Xms48m sets the startup memory to 48 megabytes.
It is a common convention for -J to pass options to the underlying VM executing applications written in Java.
jps -q
jps -m
jps -l
jps -v
jps -V
jps -J-参数,用来动态设置 jvm 参数
论读书
睁开眼,书在面前 闭上眼,书在心里
睁开眼,书在面前 闭上眼,书在心里