-
1. Re: JBoss EAP 6.3.1 does not show Data Source Metrics
ctomc Oct 3, 2014 1:16 PM (in response to jorsol)EAP 6.3.1? there is no such release at this time.
-
2. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
jorsol Oct 3, 2014 1:39 PM (in response to ctomc)You are right Tomaz, It's a typo, I corrected it...
In EAP 6.3.0 the web console don't show the metrics.
-
3. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
chriscab916 Jan 9, 2015 3:00 PM (in response to jorsol)Any solution to this? I would also like to know how to enable the datasource metrics.
In the cli, i ran the following (running in domain mode):
/host=hostname/server=servername/subsystem=datasources/data-source=datasourcename/statistics=pool :read-resource(recursive=true, include-runtime=true)
but got all 0s in the result:
{
"outcome" => "success",
"result" => {
"ActiveCount" => "0",
"AvailableCount" => "0",
"AverageBlockingTime" => "0",
"AverageCreationTime" => "0",
"CreatedCount" => "0",
"DestroyedCount" => "0",
"InUseCount" => "0",
"MaxCreationTime" => "0",
"MaxUsedCount" => "0",
"MaxWaitCount" => "0",
"MaxWaitTime" => "0",
"TimedOut" => "0",
"TotalBlockingTime" => "0",
"TotalCreationTime" => "0",
"statistics-enabled" => false
}
}
-
4. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
jdoyle Jan 9, 2015 4:13 PM (in response to chriscab916)Try flipping the "statistics-enabled" property to true.
-
5. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
ctomc Jan 11, 2015 5:44 PM (in response to jdoyle)do something along the lines of
/host=hostname/server=servername/subsystem=datasources:write-attribute(name="statistics-enabled", value=true)
-
6. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
chriscab Jun 24, 2015 12:51 PM (in response to ctomc)I forgot to say thanks back then, so thanks all!
Anyone know if there's a way to permanently enable these datasource statistics? There's no instance of a "statistics-enabled" attribute in any of the config files in the domain/configuration folder, so does that mean the attribute is only available during runtime? The statistics are disabled whenever the server is restarted.
-
7. Re: JBoss EAP 6.3.0 does not show Data Source Metrics
laurensto Sep 4, 2015 6:59 PM (in response to chriscab)You can try adding by the attribute statistics-enabled="true" to your datasource definition in e.g. standalone.xml.
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true" statistics-enabled="true">
The statistics are then enabled whenever the server is restarted.