[jboss-jira] [JBoss JIRA] (AS7-5472) unavailable datasource statistics
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Tue Sep 4 09:52:38 EDT 2012
[ https://issues.jboss.org/browse/AS7-5472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12715757#comment-12715757 ]
Brian Stansberry commented on AS7-5472:
---------------------------------------
Stefano, if the representation of this stuff looks right via the CLI, I suspect it's a problem in how the JMX view into the core management model is dealing with the description of datasource resources. When we added statistics=jdbc and statistics=pool to the description tree, it exposed a design flaw in what I originally did. The design was, for the "datasource" resource:
{code}
{
"attributes" => { ... attributes },
"operations" => { ... operations },
"children" => {
"statistics" => {
"model-description" => {
... attributes, operations, children of generic 'statistics' children
}
}
}
}
{code}
This design assumed that all children of type 'statistics' have the same model-description.
But in reality in some cases children are polymorphic, and for those we have:
{code}
{
"attributes" => { ... attributes },
"operations" => { ... operations },
"children" => {
"statistics" => {
"jdbc" => {
"model-description" => {
... attributes, operations, children of 'statistics=jdbc' children
}
},
"pool" => {
"model-description" => {
... attributes, operations, children of 'statistics=pool' children
}
}
}
}
}
{code}
This introduced another level that the JMX view logic probably doesn't handle. If the CLI view looks OK, I suggest you ping Kabir and I about this.
> unavailable datasource statistics
> ---------------------------------
>
> Key: AS7-5472
> URL: https://issues.jboss.org/browse/AS7-5472
> Project: Application Server 7
> Issue Type: Bug
> Components: JCA, JMX
> Affects Versions: 7.1.2.Final (EAP)
> Reporter: Mathieu Lachance
> Assignee: Stefano Maestri
> Priority: Minor
>
> In the java visual vm, in the mbean tab, under the "jboss.as:subsystem=datasources,data-source=MyDataSource" mbean, attribute "statistics" is marked as "Unavailable"
> When using the spy="true" attribute in the datasource subsystem in conjunction with the "org.jboss.jca" logger set as TRACE level in the logging subsystem, statistics are outputted as follow :
> Statistics:
> ActiveCount: 1
> AvailableCount: 99
> AverageBlockingTime: 0
> AverageCreationTime: 248
> CreatedCount: 1
> DestroyedCount: 0
> MaxCreationTime: 248
> MaxUsedCount: 1
> MaxWaitCount: 0
> MaxWaitTime: 0
> TimedOut: 0
> TotalBlockingTime: 0
> TotalCreationTime: 248
> I would except to find those statistics available through separates jmx attributes when using the spy="true".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list