About Monitoring

 

 

 

TABLE 18–4EJB 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 18–5EJB 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.

 

 

 

Chapter 18 • Monitoring Components and Services

179

Page 179
Image 179
Sun Microsystems 820433510 manual 4EJB Pool Statistics, 5EJB Cache Statistics