-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Shawn,
On 3/29/18 12:00 PM, Christopher Schultz wrote: > Shawn, > > On 3/28/18 4:42 PM, Shawn Heisey wrote: >> On 3/28/2018 1:18 PM, Christopher Schultz wrote: >>>> I would like to write a logging thread that can get ALL of >>>> the datasource objects from the context, and for types that >>>> it knows, cast them to the appropriate object to log the >>>> active/idle connection counts. >>> >>> It might be easier to do this via JMX. > >> Perhaps. But then I have to figure out how to get the program >> started with the sysprops that enable remote JMX. The system >> has no GUI, and we don't have any X-Windows infrastructure, so >> running JDK tools locally on the Linux server is challenging. >> Not impossible, just requires me to set up things that I don't >> already have, to do X forwarding over SSH. With the logging >> thread idea, we just need to update code, recompile, and >> redeploy. > > I don't bother with any of that garbage. I use Tomcat's Manager > application and the JMXProxyServlet. It's an HTTP-to-JMX bridge, > so your client just has to speak HTTP. > > I use it along with a Nagios plug-in to fetch things like (wait > for it) DataSource pool stats :) Have a look at: http://people.apache.org/~schultz/ApacheCon%20NA%202016/Monitoring%20Apa che%20Tomcat%20with%20JMX.pdf - -chris -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlq9JZ8ACgkQHPApP6U8 pFjf1A//ctmoJ0Vm8dO+2jyGaUIGIge8teeUd+IeyqH5AQ5mZ1g9mVrLT53Gx0B2 3DKV9XpcaD91sCK/0Xs9su63+IHZNKNvgxQASriQD/iZ4Ebbkv8aLaZcEfR5fBJC cHU0n7DSKgDtX6vj3gSUb+A4KuNndbsEiXck9nSBxSr57OCJA4TEuTp6QTyXmekO 7Dtv1u0CpljPK4XxrMHJiCTsM7WSdEJQnSRbMQehQTF0fNLNk+wvaLosojBnLdJn /x4naQh0tHTjyq96+oDIRRhSCFvHqQM1X7/n68eibAEHd2jvSyagleBVVBDyDSzj bUzGaATkc7P6jkJiTm5nsIE6zrC/AoJcDaSamz5pXj2FTcdOTd9mSQ7Q+roQ70c/ g5VgG+FnZNqQHYG6tToqJiZ3DvPtlxp1o07psCFUOoSc3FRbK2+a0eiUCSbaZbJK T3kdrN+zZke44EO8JKFtEh45bFF8M9mYeadLfuCgHM2G5T+8ni4HkOX5KPR0PTg7 FqdMk56n+wwEjRV8VDGLo3vASmRKT9DbUYsLpIdGFtAaHuuviPJqVgldd2eukKfm 5LhaB7mfAmk5i5DfBL9lZWqCa+SiGwe/MN5BN1BtVo1zxoRlnG3xdb411V/V69bX VQFLAcNFV5Y5fMdDHI5eR4cRHF4W/bj72eRZgtLZRmh22fphzs0= =CRLc -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org