EJB statistics are described in the following table.
Table 16–1 EJB Statistics|
Attribute Name |
Data Type |
Description |
|---|---|---|
|
createcount |
CountStatistic |
Number of times an EJB’s create method is called. |
|
removecount |
CountStatistic |
Number of times an EJB’s remove method is called. |
|
pooledcount |
RangeStatistic |
Number of entity beans in pooled state. |
|
readycount |
RangeStatistic |
Number of entity beans in ready state. |
|
messagecount |
CountStatistic |
Number of messages received for a message-driven bean. |
|
methodreadycount |
RangeStatistic |
Number of stateful or stateless session beans that are in the MethodReady state. |
|
passivecount |
RangeStatistic |
Number of stateful session beans that are in Passive state. |
The statistics available for EJB method invocations are listed in the following table.
Table 16–2 EJB Method Statistics|
Attribute Name |
Data Type |
Description |
|---|---|---|
|
methodstatistic |
TimeStatistic |
Number of times an operation is called; the total time that is spent during the invocation, and so on. |
|
CountStatistic |
Number of times the method execution resulted in an exception. This is collected for stateless and stateful session beans and entity beans if monitoring is enabled for the EJB container. |
|
|
CountStatistic |
Number of times the method successfully executed. This is collected for stateless and stateful session beans and entity beans if monitoring enabled is true for EJB container. |
|
|
CountStatistic |
Time (ms) spent executing the method for the last successful/unsuccessful attempt to execute the operation. This is collected for stateless and stateful session beans and entity beans if monitoring is enabled on the EJB container. |
The statistics for EJB Session Stores are listed in the following table.
Table 16–3 EJB Session Store Statistics|
Attribute Name |
Data Type |
Description |
|---|---|---|
|
currentSize |
RangeStatistic |
Number of passivated or checkpointed sessions currently in the store. |
|
activationCount |
CountStatistic |
Number of sessions activated from the store. |
|
activationSuccessCount |
CountStatistic |
Number of sessions successfully activated from the store |
|
activationErrorCount |
CountStatistic |
Time (ms) spent executing the method for the last successful/unsuccessful attempt to execute the operation. This is collected for stateless and stateful session beans and entity beans, if monitoring is enabled on the EJB container. |
|
passivationCount |
CountStatistic |
Number of sessions passivated (inactivated) using this store. |
|
passivationSuccessCount |
CountStatistic |
Number of sessions successfully passivated using this store. |
|
passivationErrorCount |
CountStatistic |
Number of sessions that could not be passivated using this store. |
|
expiredSessionCount |
CountStatistic |
Number of expired sessions that were removed by this store. |
|
passivatedBeanSize |
CountStatistic |
Total number of bytes passivated by this store, including total, minimum, and maximum. |
|
passivationTime |
CountStatistic |
Time spent on passivating beans to the store, including the total, minimum, and maximum. |
|
checkpointCount (EE only) |
CountStatistic |
Number of sessions checkpointed using this store. |
|
checkpointSuccessCount (EE only) |
CountStatistic |
Number of sessions checkpointed successfully. |
|
checkpointErrorCount (EE only) |
CountStatistic |
Number of sessions that couldn't be checkpointed. |
|
checkpointedBeanSize (EE only) |
ValueStatistic |
Total number of beans checkpointed by the store. |
|
checkpointTime (EE only) |
TimeStatistic |
Time spent on checkpointing beans to the store. |
The statistics available for EJB pools are listed in the following table.
Table 16–4 EJB Pool Statistics|
Attribute Name |
Data Type |
Description |
|---|---|---|
|
BoundedRangeStatistic |
Number of EJB’s in the associated pool, providing an idea about how the pool is changing. |
|
|
BoundedRangeStatistic |
Number of threads waiting for free beans, giving an indication of possible congestion of requests. |
|
|
CountStatistic |
Number of beans created in associated pool since the gathering of data started. |
|
|
CountStatistic |
Number of beans destroyed from associated pool since the gathering of data started. |
|
|
CountStatistic |
The maximum number of messages to load into a JMS session at one time for a message-driven bean to serve. Default is 1. Applies only to pools for message driven beans. |
The statistics available for EJB caches are listed in the following table.
Table 16–5 EJB Cache Statistics|
Attribute Name |
Data Type |
Description |
|---|---|---|
|
BoundedRangeStatistic |
The number of times a user request does not find a bean in the cache. |
|
|
BoundedRangeStatistic |
The number of times a user request found an entry in the cache. |
|
|
numbeansincache |
BoundedRangeStatistic |
The number of beans in the cache. This is the current size of the cache. |
|
CountStatistic |
Number of passivated beans. Applies only to stateful session beans. |
|
|
CountStatistic |
Number of errors during passivation. Applies only to stateful session beans. |
|
|
CountStatistic |
Number of expired sessions removed by the cleanup thread. Applies only to stateful session beans. |
|
|
CountStatistic |
Number of times passivation completed successfully. Applies only to stateful session beans. |
The statistics available for Timers are listed in the following table.
Table 16–6 Timer Statistics|
Statistic |
Data Type |
Description |
|---|---|---|
|
numtimerscreated |
CountStatistic |
Number of timers created in the system. |
|
numtimersdelivered |
CountStatistic |
Number of timers delivered by the system. |
|
numtimersremoved |
CountStatistic |
Number of timers removed from the system. |