JPS 查询Java进程
jps [options] [hostid]
[hostid]格式:
[protocol:][[//]hostname][:port][/servername]
[options]选项:
选项 | 说明 |
---|---|
-q | 只输出LVMID(进程号),省略主类的名称 |
-m | 输出传递给 main 方法的参数。对于嵌入式 JVM,输出可能为 null |
-l | 输出主类的全名,如果进程执行的是jar包,这输出jar路径 |
-v | 输出虚拟机进程启动时 JVM 的参数 |
-V | Output the arguments passed to the JVM through the flags file (the .hotspotrc file or the file specified by the -XX:Flags= |
-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 |
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。