In *nix I just do ps -ef | grep java
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.
From the command line I would use
jinfo < pid >
which will give you this information and more
您可以启动JConsole ,连接到运行Weblogic的JVM,然后导航到“VM Summary”选项卡以检查classpath / vm args。
You can write a small application to connect via JMX and query the mbean java.lang.Runtime. It has an attribute "ClassPath".
import java.lang.management.*
ManagementFactory.getRuntimeMXBean().getClassPath()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.