Chris --

> -----Original Message-----
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Sent: Tuesday, October 22, 2013 10:38 AM
> To: Tomcat Users List
> Subject: Re: Connection pool statistics
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Jeffrey,
> 
> On 10/22/13 9:47 AM, Jeffrey Janner wrote:
> >> -----Original Message----- From: Anu Prab
> [mailto:anupr...@gmail.com]
> >> Sent: Tuesday, October 22, 2013 4:36 AM To: Tomcat Users List
> >> Subject: Reg: Connection pool statistics
> >>
> >> Hi,
> >>
> >> Is it possible to get the statistics of a connection pool
> >> programmatically, say when was it created? The maximum time taken by
> >> a query which used the connection from this connection pool?
> >> Statistics like these...
> >>
> >> -Anu
> >
> > Check the documentation and/or JavaDocs for the library you are using
> > for the connection pool.  It is totally dependent on the software
> > you've decided to use for creating/managing the pool.  For example,
> > I'm pretty sure that there is a management class for Oracle's
> > Universal Connection Pool (UCP).
> 
> ...or hook-up a JMX browser to Tomcat and see what you can find...
> 
> - -chris

Yes, but the OP asked specifically for a way to do it "programmatically", so I 
didn't think he was look for the standard "Use jconsole or jvisualvm" answer.  
And even if you can find out "what" is advertised, you'll still need to look 
into the docs to determine what those values mean in a lot of cases.
Jeff

Reply via email to