You can used managed beans (MBeans) to track statistics in your environment.
For the attributes to be recorded, you must enable statistics. You can enable statistics on the server, or enable HTTP session statistics to track attributes on your client application. For more information on how to enable HTTP session statistics, see xref.
You can enable statistics using the StatsSpec attribute on the ObjectGrid MBean. For more information, see the StatsSpec API.
You can also enable statistics programmatically with the StatsAccessor interface, which is retrieved with the StatsAccessorFactory class. Use this interface in a client environment or when you need to monitor a data grid that is running in the current process.