Sun GlassFish Enterprise Server v3 Administration Guide

EJB Cache Statistics

Use the following dotted name pattern for EJB cache statistics:

server.applications.appname.ejbmodulename.bean-cache.ejbname.statistic

The statistics available for EJB caches are listed in the following table.

Table 8–5 EJB Cache Monitoring Statistics

Statistic  

Data Type 

Description 

cachemisses

RangeStatistic 

The number of times a user request does not find a bean in the cache. 

cachehits

RangeStatistic 

The number of times a user request found an entry in the cache. 

numbeansincache

RangeStatistic 

The number of beans in the cache. This is the current size of the cache. 

numpassivations

CountStatistic 

Number of passivated beans. Applies only to stateful session beans. 

numpassivationerrors

CountStatistic 

Number of errors during passivation. Applies only to stateful session beans. 

numexpiredsessionsremoved

CountStatistic 

Number of expired sessions removed by the cleanup thread. Applies only to stateful session beans. 

numpassivationsuccess

CountStatistic 

Number of times passivation completed successfully. Applies only to stateful session beans.