-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Leon,
On 4/1/13 4:44 PM, Leon Rosenberg wrote: > On Mon, Apr 1, 2013 at 9:52 PM, Jeffrey Janner > <jeffrey.jan...@polydyne.com>wrote: > >>> -----Original Message----- From: Daniel Mikusa >>> [mailto:dmik...@vmware.com] 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. Jeff >> >> > MoSKito provides an even easier way to obtain a thread dump via > web interface: > > http://server04.test.anotheria.net:8080/moskitodemo/mui/mskThreadsDump Nice. Sorting > by thread id, name, and status would be a very nice feature. Oracle's JVM's thread dump gives you information about the locks held by a thread so you can find out which two are deadlocked. Is that even possible from pure Java code? If so, it would also be critical to tracking-down this kind of 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/ iQIcBAEBCAAGBQJRXEh/AAoJEBzwKT+lPKRYMfQP/2YFRdAouSRAZT1SDr8IeLf5 5Ahtxl4e9JFfcmVkQ33/ohD2AyKNpwElRE0Ao2ybWLp+bvYQJRU1hl3gfetxsrQG S+L1lQg2gR/n0iZZiQ5TTIhSrf+vrnTfA5aHNGe00kgD4cEfDwtt2xqaRTvyt/j0 bD0Q3s8fCdmYmaD9e/ypcRI3moD5/CRhsWrQiVrCE4Tb2bempvTj7Ey7/r//0znN SmdzgkmHcZ0b59SnrJF7PH1CV1EBLE3vbabZQJjEoyrwh09l9zUHzzszVy2+rc0+ 6JmJvL8BNLWiSkkS7XDCZzt35UaiX1xd39qjLQnIMNp5znAIKUexfNyEP/Yl+Sfz TtVKF0CJzwiln8KEWv4YEeMBaUP5AzBcLDX3Bv5dTnE0hDN2dAad5Sbc4Ums1pf9 aojPyUx4ShtXGtMxkmSr1uXr/xh8t6RjFCSqryHTyFCZvVUAvzbb3QEjZxwRyMQm c5EdhkgIFqPBSKyJ6ipp8c066Yp+mxv6MFykgGW9y0QzgiUfLf437l8ERwmu3CrU qCi4uxHQMTn200q3/+r8omcrkGzM9ehbdJyq6CyIN/6ONNYH47q3HTTQKNvIUAuz R+S3GEIK9xMRDcoz35qFqZsg1E8Js8IRUgvKTrOOh473kr3v6+IBDhseleMBT7x7 iX5JrgqYDypJCxMeOZfD =zILk -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org