tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <dmik...@gopivotal.com>
Subject Re: SlowQueryReport
Date Tue, 04 Jun 2013 14:20:50 GMT

On Jun 4, 2013, at 6:26 AM, Lutischán Ferenc <lutischanf@gmail.com> 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: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message