How to get PID of java application ?

Query: How to get java application PID ?

Solution: From command prompt try any of the following

1. tasklist - Get PID of java.exe ( But this method is not reliable if multiple java application are running)

2. jconsole - Connect to the application and cross verify the PID

Note: JDK should be installed & should be available in the classpath.




No comments:

Post a Comment