Chapter 9. Accessing relational databases from WebSphere 381
d. Click Runtime tab.
e. Click Change Log Level Details.
f. Click the Runtime tab.
g. In the Trace Specification field, enter ConnLeakLogic=all.
h. Click OK.
9.10.3 Dumping connection pool information using wsadmin
For collecting diagnostic data you can look at the SystemOut.log while the system is running.
If you see the J2CA0045E error message in SystemOut.log, invoke wsadmin to dump the pool
contents of the data source.
Use one of the following commands to dump the content of the connection pool:
C:\IBM\WebSphere\bin>wsadmin -c “$AdminControl invoke [$AdminControl queryNames
\”*:name=<INSERT DISPLAY NAME OF DATASOURCE HERE>,process=<SERVER
NAME>,node=<NODE NAME>,j2eeType=JDBCDataSource,*\”] showPoolContents” -user
<adminuserid> -password <adminpw>
C:\IBM\WebSphere\bin>wsadmin>set ds [$AdminControl queryNames “*:name=<INSERT
DISPLAY NAME OF DATASOURCE HERE>,process=<SERVER NAME>, node=<NODE
NAME>,j2eeType=JDBCDataSource,*”]
wsadmin>$AdminControl invoke $ds showPoolContents
9.10.4 Tool to debug Database Access problems
For debugging database access problems, you can use the IBM Database Connection Pool
Analyzer. This tool finds JDBC connection leaks and helps to resolve JDBC connection pool
problems. The tool performs the following functions:
Analysis of JDBC data source
Java stack trace view of getConnection method
JDBC connection chart view
Analysis of JDBC connection pool configuration
You can download the IBM Database Connection Pool Analyzer from the following website:
https://www.ibm.com/developerworks/mydeveloperworks/groups/service/html/communityv
iew?communityUuid=f324412c-747c-42b9-8a70-a4d54e5f0e03
Note: Ensure that you enabled the trace immediately after the server is started before any
connections are obtained from the connection pool.
A trace.log is created that contains similar content as the SystemOut.log. It does not log
ongoing messages, such as a WAS.j2c trace, and it causes only slight performance
impact.