List of running JVMs on the localhost

后端 未结 8 1344
慢半拍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:23

    I don't know about Java 6, but I think you can do by running jconsole from the command line.

    Also, if you are on a *nix platform you can issue a command like this this:

    ps aux | grep java
    

    Good luck!

提交回复
热议问题