queryJMXMBeans
Retrieves list of wdr.control.JMXMBean instances matching specified criteria.
queryJMXMBeans( [<domain>,] <criteria> )
Arguments
domain
JMX domain being searched; optional argument, defauts to value of ‘WebSphere’; in most of the cases you can skip this argument and rely on the default value
criteria
list of key/value pairs
Result
List of wdr.control.JMXMBean instances.
Examples
- Printing free and available memory for each JVM MBean found
for jvm in queryJMXMBeans(type='JVM'):
print 'Free/max memory: %d/%d' % (jvm.freeMemory, jvm.maxMemory)