Enable performance monitoring services with wsadmin

Use wsadmin to invoke operations on PerfMbean to obtain PMI data, set or obtain PMI monitoring levels, and enable data counters. For more information about wsadmin, see The wsadmin administrative tool.

The following operations in PerfMBean can be used in wsadmin:

/** Set instrumentation level using String format
*  This should be used by scripting for an easy String processing
*/
public void setInstrumentationLevel(String levelStr, Boolean recursive);

/** Get instrumentation level in String for all the top level modules
*  This should be used by scripting for an easy String processing
*/     public
String getInstrumentationLevelString();

 /** Return the PMI data in String
*
*/     public
String getStatsString(ObjectName on, Boolean recursive);

/** Return the PMI data in String
*  Used for PMI modules/submodules without direct MBean mappings.
*/     public
String getStatsString(ObjectName on, String submoduleName, Boolean recursive);

/**
* Return the submodule names if any for the MBean
*/
public String listStatMemberNames(ObjectName on);

If an MBean is a StatisticProvider and if you pass its ObjectName to getStatsString, you get the Statistic data for that MBean. MBeans with the following MBean types are statistic providers: