DevPortal

How do I monitor Datasources for J2EE Applications?


Table of Contents


How do I monitor Datasources for J2EE Applications?

Pramati Server enables you to monitor details about a datasource using the GUI as well as the command shell. A datasource provides pooled connections to applications. The physical connections are obtained from a JDBC Connection Factory and pooled by the datasource. Along with pooling, the datasource provides other configurable features like connection validation, pool sizes, connection time out, and pool refresh interval.

For monitoring a datasource on the Console, select Monitor > Resources in the Explore panel. The screen displays the following information:

Table 1: Datasource details

FieldsDescription
DatasourceDisplays the JNDI name link.
Close CountDisplays the number of connections that have been closed.
Discarded CountDisplays the number of connections that have been removed from the pool.
Waiting Thread CountDisplays the number of threads waiting for a connection from pool.
Cache Hit RatioDisplays the ratio between the number of prepared statements returned from cache to the total number of prepared statements.
Average Connection Use TimeDisplays the duration for which the connection was used.
Total Pool SizeDisplays the number of connections in the pool.
Free Pool SizeDisplays the number of free connections in the pool.

Clicking on a datasource name link takes you to a screen displaying all the details related to that particular datasource. The following details are provided:

What are the details provided for Connections?

The details provided regarding connections are:

Table 2: Connection details

FieldsDescription
Connections AccessedDisplays the number of connections that have been started.
Connections ClosedDisplays the number of connections that have been closed.
Connections DiscardedDisplays the number of connections that have been removed from the pool.
Max Pool SizeDisplays the maximum pool size specified for that datasource.
Min Pool SizeDisplays the minimum pool size specified by the datasource.

What are the details provided for Connection Use Time?

The following details are provided for the time for which connections were used:

Table 3: Connection Use time details

FieldsDescription
CountDisplays the number of connections that have been used.
Min TimeDisplays the minimum time for which the connection was used.
Max TimeDisplays the maximum time for which the connection was used.
Avg TimeDisplays the average time for which the connection was used.

What are the details provided for Pool Waits?

The details provided regarding waiting threads are:

Table 4: Waiting Threads details

FieldsDescription
MinDisplays the minimum number of waiting threads.
MaxDisplays the maximum number of waiting threads.
AvgDisplays the average number of waiting threads.

What are the details provided for Pool Usage?

The pool usage displays the status of the datasource connections that are in use and those that are free. For each of the types the following information is displayed.

Table 5: Details provided for the Free Pool size

FieldsDescription
MinDisplays the minimum connections in the free pool.
MaxDisplays the maximum connections in the free pool.
AvgDisplays the average connections in the free pool.
Min LimitDisplays the minimum free pool size that can be retained.
Max LimitDisplays the maximum free pool size that can be retained.

What are the details provided for Cache?

The details provided regarding cache are:

Table 6: Cache size details

FieldsDescription
Obtained from CacheDisplays the number of statements that are obtained from the cache.
TotalDisplays the total number of prepared statements available.
RatioDisplays the ratio between the number of prepared statements returned from cache to the number of prepared statements created afresh.

What are the details provided for Statements Execution Time?

The details provided regarding the execution time of the statements are:

Table 7: Details provided for the Cache Hit Ratio

FieldsDescription
DatasourceDisplays the JNDI name.
First CountDisplays the number of prepared statements returned from cache.
Second CountDisplays the number of prepared statements created afresh.
RatioDisplays the ratio between the number of prepared statements returned from cache to the number of prepared statements created afresh.


© Pramati Technologies 2007 Runs on Pramati Server | Feedback | Legal