Accessing built-in MBeans in Tomcat programmatically
问题 Basically I'm trying to modify the code from this tutorial here: http://docs.oracle.com/javase/tutorial/jmx/remote/custom.html so that I can access the MBeans from tomcat that are described here: http://wiki.apache.org/tomcat/FAQ/Monitoring there is no problem accessing the JMX Bean java.lang:type=Memory from code since it's interface is defined in java.lang. Here's the code example of that: ObjectName mbeanName = new ObjectName("java.lang:type=Memory"); MemoryMXBean mxbeanProxy2 = JMX