Enabling statistics

WebSphere® eXtreme Scale uses an internal statistics model to track and filter data, which is the underlying structure that all data views use to gather snapshots of statistics. You can use several methods to retrieve the information from the statistics modules.

About this task

For a list of all of the modules on which you can enable statistics, see StatsSpec class.

Procedure

  • Enable statistics with the server properties file.
    You can use the statsSpec property in the server properties file for the container server to set the statistics specification when you start the server. For more information, see Server properties file.
  • Enable statistics with the xscmd utility.
    You can use the -c setStatsSpec command to set the statistics specification at run time. For more information, see Administering with the xscmd utility.
  • Enable statistics programmatically with the StatsSpec interface.
    For more information, see Monitoring with the statistics API.
  • Enable statistics with JMX with the setStatsSpec operation on the DynamicServerMBean.
    For more information, see Interface DynamicServerMBean.

Example

Some examples of statsSpec strings that you might specify using the properties file, xscmd utility, or StatsSpec interface follow:

Enable all statistics for all modules:
all=enabled
Disable all statistics for all modules:
all=disabled
Enable statistics for all statistics in the OGStatsModule:
og.all=enabled
Enable statistics for all statistics in the OGStatsModule and MapStatsModule:
og.all=enabled;map.all=enabled
Enable statistics for only Map Used bytes statistic, and disable everything else:
all=disabled;map.usedbytes=enabled