[jboss-dev-forums] [JBoss AS7 Development] - Re: JMX-based monitoring the jbossAS7 database connection pool
Heiko Braun
do-not-reply at jboss.com
Mon Oct 10 03:21:59 EDT 2011
Heiko Braun [http://community.jboss.org/people/heiko.braun] created the discussion
"Re: JMX-based monitoring the jbossAS7 database connection pool"
To view the discussion, visit: http://community.jboss.org/message/630812#630812
--------------------------------------------------------------
AS 7 ships with it's management layer and does not expose managemnt operations and atributes through JMX anymore. In order to retrieve the datasource information, you would need to rely on the http://community.jboss.org/docs/DOC-16317 detyped description, as described here.
An example does look like this (Using the CLI):
Laika:jboss-as-7.1.0.Alpha2-SNAPSHOT hbraun$ ./bin/jboss-admin.sh --connect
Connected to standalone controller at localhost:9999
[standalone at localhost:9999 /] /subsystem=datasources/data-source=java\:jboss\/datasources\/ExampleDS:read-resource(include-runtime=true)
{
"outcome" => "success",
"result" => {
"ActiveCount" => "0",
"AvailableCount" => "20",
"AverageBlockingTime" => "0",
"AverageCreationTime" => "0",
"CreatedCount" => "0",
"DestroyedCount" => "0",
"MaxCreationTime" => "0",
"MaxUsedCount" => "0",
"MaxWaitCount" => "0",
"MaxWaitTime" => "0",
"PreparedStatementCacheAccessCount" => "0",
"PreparedStatementCacheAddCount" => "0",
"PreparedStatementCacheCurrentSize" => "0",
"PreparedStatementCacheDeleteCount" => "0",
"PreparedStatementCacheHitCount" => "0",
"PreparedStatementCacheMissCount" => "0",
"TimedOut" => "0",
"TotalBlockingTime" => "0",
"TotalCreationTime" => "0",
[...]
}
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/630812#630812]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111010/b75c02a8/attachment.html
More information about the jboss-dev-forums
mailing list