Reputation: 1444
Class MonitoredHost
is not present in the java version i am using which is
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
The api doc says it available under package sun.jvmstat.monitor
but the package doesn't appears in my jdk.
Am i missing anything ? Is there any other equivalent class for this which I can use from my java app?
More specifically which java apis can i use for reading all the running java process? (i.e something similar to jps
)
Upvotes: 1
Views: 1656
Reputation: 1444
After doing some more research I found a good article here which says that its present in tools.jar
sun.jvmstat.monitor
package :
tool.jar
from Maven repo; configure it with Maven is a bit tricky.Upvotes: 2