How can I view the classpath and jvm args of a running java program in windows

In * nix, I just do ps -ef | grep java ps -ef | grep java to see jvm args and classpath executing java programs. How can I see it on a windows command prompt? I want to see if certain jars really are in the classpath of a running weblog server.

+4
source share
3 answers

You can launch JConsole , connect to the Weblogic JVM, and then go to the VM Summary tab to view the classpath / vm arguments.

+5
source

On the command line I use

jinfo <pid>

which will provide you this information and much more

+2
source

You can write a small application to connect through JMX and request mbean java.lang.Runtime. It has the attribute "ClassPath".

0
source

Source: https://habr.com/ru/post/1486648/


All Articles