-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeffrey,
On 10/22/13 5:40 PM, Jeffrey Janner wrote: > 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. Well, if you know the JMX bean (by using JVisualVM to find it, for instance), you can certainly grab a hold of the bean at runtime and query it all you want.... programmatically. ;) - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSZwGzAAoJEBzwKT+lPKRYNXEP/37ztfW5eRu5dvKs2U6BPtC4 TxeRV30X7zrK6ypPGjqMy+JvPSJXsSgD8x1tjkoKVHgKvDqxCE2jDwBqfJUpIiA7 7b5oruUrCijhpOuSN4zHsLFIlt9K1V2a7sc77t9NcFXmdLKbgIBMgI3O3Gzdwb7v Y56TxI2IuI1vB80FcEefSJG1N7SJj3iLfrgV41lVoJECprVUJnXN4BRrFa+q40/E 8vMYJ64Mspr3tHSBfySksCcNzn4YQ9WlIRSE0O5KoaUahKtJRqkwBf746PmWgChM m0BzEeexKZHI4+B8plXVi+jRouhVxhHSUf75Wg2LCGDEHJIvYEYuq4Axi2QgcOIb jjnEqiy5dMJ8oYvKKUXgVRDLWrHzyBVQkdBc8mJwMxPdmxbH6U9KSL/9gjFOzuA1 NIYoguBeujQmol4sG0tTesK/BBfj7vGzYX40dFhumw/85HPHqfBdNGEMae8xLsSy kXVM2hPIaYd5DRY4KkXVJeVo4sS8CMn0dnqz4XsnQ07FOLJqNaaqs9/qrjdNexrT COk6obTBGGUE4DXNUZ/gAHdWgKZgAydB2UlCi2YsY+zbnZotAqJjG9+8RX9MZesi n2dgctl5NtGPqPrOqU8xVxIVtCnlI0he5EOCw4oCXInsRgKwlOLbGjBEFI1aO6mf EIxqbKc60Vns/AKvEQeq =0yuR -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org