-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeffrey,
On 4/1/13 3:52 PM, Jeffrey Janner wrote: >> -----Original Message----- From: Daniel Mikusa >> [mailto:[email protected]] Sent: Monday, April 01, 2013 1:09 PM >> To: Tomcat Users List Subject: Re: how to monitor the traffic >> through the connector >> >> On Apr 1, 2013, at 1:40 PM, a wrote: >> >>> Hi, >>> >>> Thank you for reply. The servlet of the web application does >>> not response to the request after running serveral months. The >>> problem can be solved by >> restarting the tomcat. >>> I want to troubleshoot by monitoring the number of avaliable >>> threads or occupied threads. >>> >>> Thank you >>> >> >> First, don't top post (i.e. reply at the top of your email). >> Either reply below the previous response or as typically works >> best, inline. >> >> Second, when you encounter a problem with your servlet / Tomcat, >> take three or four thread dump, separated by 15 - 20 seconds >> each. Each thread dump will show you the current status of all >> the threads in the JVM. You can use the thread dumps to check >> for block threads and long running processes. >> >> Instructions for taking a thread dump. >> >> >> https://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_m >> >> y_running_webapp_.3F >> >> Dan >> > > FWIW, I've found jconsole immensely helpful in sorting out blocked > threads. And none of that manually searching through dumps. Jconsole is notoriously difficult to get running on a remote server (unless it's running Microsoft Windows, but then again I can't imagine a Windows server that stays running for "several months" where the webapp turns out to be the problem ;). - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJRXEfkAAoJEBzwKT+lPKRYKPUQAJIshzZVPoxPaqbBGLb6IzXe ChSiwK40Jo/LtniAxMkpgtraXXCatDCLK9TZKrc7QsnaYePcJTTuJylYF/cbDox9 6SvFMOWlvbm4ZX+Qj7jnKj5UkNIbuws7PHEFtD5s+2HyuXe5DSl/xTwlbW25cAi6 GwXI/HbhwwFAqLWkgf9AMyfA8SQT0YEYmC8hhBtz6lfJYP0xiN6oqeIuOgnJAFJf YU+ITSyiKyqHboNjnoz4OtTgQGbxVuGjeAeJKVjTJVL2qpHmVWHekV53/4Qps/nk vW55K3ah7K+e0xETZpHE1Wdbse189DDM2GEWvoEGANHjLnvJ19ugvs08IQ4xIR19 orZmSBf7RSFqR6MSwT2N6YrFTKnGij/yQXYg6oxJkF0/0Ep6frWxf8xfUis5+Muo /WcsW5nNFbrFHDWuAifPNT1HPXVtftJ/VxZs43Fsht6618pfFZMpQStqmUUWmbVb 31uTaZk7karGhdQuMFqQNMLhUcj6jhsZEQJPiozO/oc2GUznQfz8TcaRVhtiElxf PEUICU23hBVOHqOhfozmC5a1opFVbpSTvH2KHcdAkaJB1NrBtsKcA0GPTH8S4E5K y6Ld3TdrLXvpuu6d1tyfLtkaMixT5GnqbALiOPLvZFOKoSw99VQCUpj+NBeMvn5M RRrBwOu10/oV64H9SNvP =mPr8 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
