Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DEF34F12C for ; Wed, 3 Apr 2013 15:17:22 +0000 (UTC) Received: (qmail 37951 invoked by uid 500); 3 Apr 2013 15:17:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 37734 invoked by uid 500); 3 Apr 2013 15:17:18 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 37721 invoked by uid 99); 3 Apr 2013 15:17:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 15:17:18 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.59.243] (HELO qmta13.westchester.pa.mail.comcast.net) (76.96.59.243) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 15:17:13 +0000 Received: from omta08.westchester.pa.mail.comcast.net ([76.96.62.12]) by qmta13.westchester.pa.mail.comcast.net with comcast id KP061l00A0Fqzac5DTGscv; Wed, 03 Apr 2013 15:16:52 +0000 Received: from Christophers-MacBook-Pro.local ([69.143.109.145]) by omta08.westchester.pa.mail.comcast.net with comcast id KTGr1l00F38FjT13UTGraR; Wed, 03 Apr 2013 15:16:52 +0000 Message-ID: <515C47E5.5030705@christopherschultz.net> Date: Wed, 03 Apr 2013 11:16:53 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: how to monitor the traffic through the connector References: <23DE8F95-CA84-4956-9FDB-2987F1AAA19B@vmware.com> <7215BA462D00D343B2837F9113F0131F0146F1422C@POSTOFFICE02.polydyne.com> In-Reply-To: <7215BA462D00D343B2837F9113F0131F0146F1422C@POSTOFFICE02.polydyne.com> X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1365002212; bh=3jKzIHMQ8bJ8I/X8p0pC2pzXRsnpoDrpU4CFqTItrho=; h=Received:Received:Message-ID:Date:From:MIME-Version:To:Subject: Content-Type; b=Twa9Hmg0XGhVPtI+cfFoBRe3cnjwtgiNiyJ3R8u56URbe+RjLaYnhiD8ylhDJW9fl LMnoUeLMY2+Kn8PEfF9WaqXUgD+3xSgJ2mwFmgQ2H54lht22qPSaqbedeARnK1DghL ERnlprDgzCR7VTTi25rRqgpZJzlYcqcDrGeZNpFWvw9Jgdtlrjht/MqvlnT/UmYFgL pFIb3dDVWjgAe9VO5osThIK9Q+HPW77XqIJpfdBh/yWlRgUh9308272gmYHC5iUWCm fMBiMUzZi3tWbV3XjkLZbRCVLSnx35UhI6PZa58sGrBUd2M9y0mJP93+e1ygGycC37 LejZ4TbeWwlbQ== X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jeffrey, On 4/1/13 3:52 PM, Jeffrey Janner wrote: >> -----Original Message----- From: Daniel Mikusa >> [mailto:dmikusa@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. 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: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org