`
周凡杨
  • 浏览: 235834 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Java常用工具--jps

阅读更多

                jps-虚拟机进程状况工具

Jps : JVM Process Status Tool 

功能列出下在运行的虚拟机进程,并显示虚拟机执行主类Main Class, main函数所在的类)的名称,以及这些进程的本地虚拟机的唯一ID(LVMID,Local Virtual Machine Identifier)

使用方法:

进入到java的安装目录,位于bin目录下有很多的工具,其中一个名为jps.exe有就是本文要讲的工具:

例子:


如果直接输入jps命令,则会显示进程ID 和 主类的名称或jar的名称,而且该命令还支持一些参数。

OPTIONS

-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 identifier


只输出LVMID,省略主类的名称

-m

Output the arguments passed to the main method. The output may be null for embedded JVMs.


输出虚拟机进程启动时传递给主类 main() 函数的参数

-l

Output the full package name for the application's main class or the full path name to the application's JAR file.


输出主类的全名,如果进程执行的是Jar包,输出Jar 路径

-v

Output the arguments passed to the JVM.


输出虚拟机进程启动时JVM参数

 

  • 大小: 7.8 KB
  • 大小: 4.1 KB
  • 大小: 25.9 KB
  • 大小: 9.6 KB
  • 大小: 55 KB
0
1
分享到:
评论
2 楼 周凡杨 2011-11-01  
恩,还有其它的小工具
1 楼 songduanlei 2011-10-31  
这个工具很实用

相关推荐

Global site tag (gtag.js) - Google Analytics