List of running JVMs on the localhost

后端 未结 8 1360
慢半拍i
慢半拍i 2020-12-24 15:57

How to get in Java 6+ the list of running JVMs on the localhost and their specs (i.e. Java version, running threads, etc.)?

Does the Java API provide such features?

8条回答
  •  心在旅途
    2020-12-24 16:17

    jps in the \jdk\bin directory prints a list of running Java processes but not their specs. Some running conditions are available:

    C:\Java\jdk1.6.0_23\bin>jps -mlv
    4660  -Dosgi.requiredJavaVersion=1.5 -Xms40m -Xmx512m -XX:MaxPermSize=256m
    6996 sun.tools.jps.Jps -mlv -Dapplication.home=C:\Java\jdk1.6.0_23 -Xms8m
    

提交回复
热议问题