Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Administration Guide

- Previous: About the Tree Structure of Monitorable Objects
- Next: Web Container Statistics

### EJB Container Statistics

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.
`totalnumerrors` | 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.
`totalnumsuccess` | 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.
`executiontime` | 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
--- | --- | ---
`numbeansinpool` | BoundedRangeStatistic | Number of EJB’s in the associated pool, providing an idea about how the pool is changing.
`numthreadswaiting` | BoundedRangeStatistic | Number of threads waiting for free beans, giving an indication of possible congestion of requests.
`totalbeanscreated` | CountStatistic | Number of beans created in associated pool since the gathering of data started.
`totalbeansdestroyed` | CountStatistic | Number of beans destroyed from associated pool since the gathering of data started.
`jmsmaxmessagesload` | 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
--- | --- | ---
`cachemisses` | BoundedRangeStatistic | The number of times a user request does not find a bean in the cache.
`cachehits` | 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.
`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.

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.

- Previous: About the Tree Structure of Monitorable Objects
- Next: Web Container Statistics

- © 2010, Oracle Corporation and/or its affiliates