Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I view the classpath and jvm args of an executing java program in windows

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

like image 911
Abe Avatar asked Jun 17 '13 15:06

Abe


People also ask

How do I find the classpath of a JVM?

You can fire up JConsole, connect to the JVM running Weblogic and then navigate to the "VM Summary" tab to inspect the classpath/vm args. This was specifically to know if it can be can be done via command prompt in windows. jmxterm can be used to query the appropriate mbean for classpath.

How do I find JVM options?

Non-Standard Java JVM Options Like the standard options, you're able to retrieve the full list of non-standard JVM command line options by calling java -X at the command line.


1 Answers

From the command line I would use

jinfo < pid >

which will give you this information and more

like image 129
Tobias Eriksson Avatar answered Sep 18 '22 20:09

Tobias Eriksson