Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

Tomcat - Datasource pool monitoring

$
0
0
Hi,
I have installed the hyperic-hq web application (the servlet plugin?) on a Tomcat server, with the intention of monitoring a DB2 database pool. I have defined the datasource and DBCP pool in the server.xml file, as shown below. I an querying the web application from a browser, using the URL http://myhost:8080/hyperic-hq/jmx-attributes?dmp=*, and getting a response which includes this:

Name: Catalina:type=Resource,resourcetype=Global,class=javax.sql.DataSource,name="jdbc/mydb"
auth: Container
name: jdbc/mydb
scope: Shareable
type: javax.sql.DataSource

But I am not getting any metrics about active and idle connections which I expected from the hyperic documentation. Can anyone please let me know what additional configuration I might need? Is there anything else to be configured on Tomcat to enable the Datasource Pool Service?
Thanks,
Manjuka

Datasource configuration in Tomcat server.xml :


<Resource name="jdbc/mydb"
                auth="Container"
                type="javax.sql.DataSource"
                username="myuser"
                password="mypwd"
                driverClassName="com.ibm.db2.jcc.DB2Driver"
                url="jdbc:db2://localhost:60000/mydb"
                maxIdle="6"
                maxWait="3000"
                maxActive="20"
                removeAbandoned="true"
                removeAbandonedTimeout="60"
                logAbandoned="true"
                validationQuery="SELECT DISTINCT(CURRENT TIMESTAMP) FROM SYSIBM.
SYSTABLES"
        testOnBorrow="true"
        testOnReturn="false"
                factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory" />

Viewing all articles
Browse latest Browse all 52618

Trending Articles