On Jun 4, 2013, at 6:26 AM, Lutischán Ferenc <[email protected]> wrote:
> Dear Users,
>
> Please help to me:
> How to get SlowQueryReport statistics?
Usually these are logged as WARN messages. Unless you use SlowQueryReportJmx
and then they are logged and sent as JMX notifications.
>
> I tried:
>
> Map<String,SlowQueryReport.QueryStats> map =
> SlowQueryReport.getPoolStats("java:comp/env/jdbc/xxx");
> and
> Map<String,SlowQueryReport.QueryStats> map =
> SlowQueryReport.getPoolStats("xxx");
>
> The result in both case was a null map.
Can you elaborate on what you are trying to do here?
Are you using Tomcat?
If so…
1.) What version are you using?
2.) How do you have your data source configured? Please include the resource
tag.
If not…
1.) Are you using the Tomcat's jdbc-pool directly?
2.) How are you setting it up?
3.) How is it configured?
4.) What version are you using?
Dan
>
>
> Thanks,
> Ferenc
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]