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 08FD61754F for ; Wed, 7 Oct 2015 21:59:59 +0000 (UTC) Received: (qmail 2184 invoked by uid 500); 7 Oct 2015 21:59:52 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2116 invoked by uid 500); 7 Oct 2015 21:59:52 -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 2105 invoked by uid 99); 7 Oct 2015 21:59:52 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 21:59:52 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1C20A1A2399 for ; Wed, 7 Oct 2015 21:59:52 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id WM1pVYeInQ6t for ; Wed, 7 Oct 2015 21:59:47 +0000 (UTC) Received: from mail-vk0-f52.google.com (mail-vk0-f52.google.com [209.85.213.52]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 2C20B204C8 for ; Wed, 7 Oct 2015 21:59:46 +0000 (UTC) Received: by vkat63 with SMTP id t63so20659425vka.1 for ; Wed, 07 Oct 2015 14:59:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=YQQncEXIkG8zN3kVYe68WI8of6GEVQt60Xuk4iuybJw=; b=cVcpMC09Ml+HAVwrsmCP8gWNG7G0nA2nOCg4052OYjTahhE16/ockyoYPzZN2vqmM7 jlSwI/xz529gcVnsIwNgNdLhXlXuFay0ExKh72H811UW7mkqqrxXud17kRSdncZRBmm4 i7XGkfU3rmQQdVoUbmgvT7M53yCn66Q6ofo09gIF/eau/tAxqRRfF2L7StJZQ5EGnQ3D mtiRSwBrJRV3iTHWhUz/212RDjRV1dZCEuflDagnW10O957AmT5c5tAyNarpjFBgLnan LYPDc/qCnyMPskvbeYUuGeTa52Pb1WzUXLx1VJbSlgR2szXAMOjhGboCXDKOOCJ9b1IX Sq5g== MIME-Version: 1.0 X-Received: by 10.31.149.86 with SMTP id x83mr2612011vkd.104.1444255178880; Wed, 07 Oct 2015 14:59:38 -0700 (PDT) Received: by 10.103.76.157 with HTTP; Wed, 7 Oct 2015 14:59:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 7 Oct 2015 23:59:38 +0200 Message-ID: Subject: Re: Monitoring Connections From: =?UTF-8?Q?Aur=C3=A9lien_Terrestris?= To: Tomcat Users List Content-Type: multipart/alternative; boundary=001a113d329ee7002805218adc3f --001a113d329ee7002805218adc3f Content-Type: text/plain; charset=UTF-8 Hi Jamie, when this happens you can do a thread-dump (kill -3 pid on Linux platforms) and you would see if there is a lock on JDBC objects, or anything else synchronized (from the Collections like Hashtable). Not easy for beginners to understand a dump, but worth learning. Very often an application will slow down because Garbage Collection, and the GC thread will be the only one working at that time. Please use the verbose settings to have all your Tomcats log GC activity. This is useful for both live and after time analysis. You won't monitor mod_proxy, this has no sense. If you suspect a network flood, do a 'netstat -an' to see how many connections are used by your Apache (both ESTABLISHED and TIME_WAIT). However, you might need to set timeout and flushpacket on your proxypass directive when your application has such requirements (see HTTPD doc for this settings). To know if you're flooded, you can do a 'ps -eaf | grep [h]ttp' and you would see many httpd process, it is similar to the netstat result more or less. If you enjoy live monitoring, you need to have a look on Christopher's presentation ( http://events.linuxfoundation.org/sites/events/files/slides/Monitoring%20Apache%20Tomcat%20with%20JMX.pdf ) who posts many answers to this mailing list. regards 2015-10-07 22:20 GMT+02:00 Jamie Jackson : > Hi Folks, > > I had a server crash on Friday, and I had the following symptoms: > > Response time worsened, and when I looked at my real-time monitoring (an > app called FusionReactor), I saw that the app *seemed* to be > single-threading (I only saw one request process at a time), then after a > few minutes, even though resources still looked good, the app no longer > seemed to receive any requests. > > My first guess was that somehow, connections were slowly getting clogged > until there were none left, then my server was completely unresponsive. > > I front Tomcat (7.0.59) with Apache HTTPD, and connect with mod_proxy. (The > end app is built in Lucee, and is running on RHEL 6.7 and Oracle Java > 1.7.0_76.) > > My instinct is to monitor the connection (pools?) in, I guess, Tomcat and > mod_proxy, but: > > > 1. I don't know if that's sane. > 2. I have no clue how one would go about that. > > I could use some input. > > Thanks, > Jamie > --001a113d329ee7002805218adc3f--