Establish a connection to a data source to query BEA WebLogic through
SNMP and to create an initial view that contains the measures you want to monitor.
-
On the
Real-Time Monitoring tab, in the
Monitor group, click
System.
The
Data Source wizard opens.
-
Click the
Select from predefined Data Sources option button.
-
Click
Next.
The
System selection page opens.
-
Expand the
Application Server folder and the
BEA WebLogic (SNMP) folder.
-
Select the
SNMP node and then click
Next.
The
Connection parameters page opens.
-
In the
Hostname text box, specify the host on which
WebLogic is running.
-
Click
Next.
The
Add SNMP Measures page opens.
BEA-WEBLOGIC-MIB is selected in the list box
of available MIBs.
The following entries for monitoring the performance of your
WebLogic Server are available:
- bea.wls.jdbcConnectionPoolRuntimeTable
- bea.wls.servletRuntimeTable
- bea.wls.ejbEntityHomeRuntimeTable
- bea.wls.ejbStatelessHomeRuntimeTable
- bea.wls.executeQueueRuntimeTable
-
Select
jdbcConnectionPoolRuntimeEntry and click
Get value(s) to retrieve all available
JDBC connection pools.
For example, when monitoring the Pet Store sample application,
a connection pool named
ServerRuntime:petstoreServer is returned.
Interesting performance counters exposed by connection pools
include the following counters:
- JdbcConnectionPoolRuntimeActiveConnectionsCurrentCount
– Returns the number of connections that are currently being used.
-
JdbcConnectionPoolRuntimeWaitingForConnectionCurrentCount
– Returns the number of waiters for connections. This number is greater
than zero when all connections are in use and additional requests for connections
are being sent to the connection pool.
- JdbcConnectionPoolRuntimeWaitSecondsHighCount
– Returns the maximum number of seconds a client waits to check out a
connection from the connection pool.
-
To monitor the number of active connections, search for the
jdbcConnectionPoolRuntimeActiveConnectionsCurrentCount
column in the table that was previously returned and select the cell.
Note: Connection pools provide a large number of performance
counters. You might need to resize some columns to view the columns in which you are
interested.
-
Click
Add.
-
Repeat the previous steps until you have entered all commands you require for measure collection, then click
Close.
The
Select displayed measures page opens.
-
Check the check boxes for those measures that you want to include in the initial monitor view and then click
Finish.
A connection to the specified host is established, and an initial view that contains the measures you selected is displayed.