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 6F7CCD454 for ; Thu, 4 Oct 2012 12:38:04 +0000 (UTC) Received: (qmail 23374 invoked by uid 500); 4 Oct 2012 12:38:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22912 invoked by uid 500); 4 Oct 2012 12:37:54 -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 22824 invoked by uid 99); 4 Oct 2012 12:37:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 12:37:51 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Chuck.Caldarale@unisys.com designates 216.82.241.132 as permitted sender) Received: from [216.82.241.132] (HELO mail45.messagelabs.com) (216.82.241.132) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Oct 2012 12:37:42 +0000 X-Env-Sender: Chuck.Caldarale@unisys.com X-Msg-Ref: server-2.tower-45.messagelabs.com!1349354239!35222680!1 X-Originating-IP: [192.61.61.104] X-StarScan-Received: X-StarScan-Version: 6.6.1.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 9915 invoked from network); 4 Oct 2012 12:37:19 -0000 Received: from unknown (HELO USEA-NAEDGE1.unisys.com) (192.61.61.104) by server-2.tower-45.messagelabs.com with RC4-SHA encrypted SMTP; 4 Oct 2012 12:37:19 -0000 Received: from usea-nahubcas2.na.uis.unisys.com (129.224.76.115) by USEA-NAEDGE1.unisys.com (192.61.61.104) with Microsoft SMTP Server (TLS) id 8.3.83.0; Thu, 4 Oct 2012 07:36:20 -0500 Received: from USEA-EXCH8.na.uis.unisys.com ([129.224.76.41]) by usea-nahubcas2.na.uis.unisys.com ([129.224.76.115]) with mapi; Thu, 4 Oct 2012 07:36:20 -0500 From: "Caldarale, Charles R" To: Tomcat Users List Date: Thu, 4 Oct 2012 07:36:17 -0500 Subject: RE: high CPU usage on tomcat 7 Thread-Topic: high CPU usage on tomcat 7 Thread-Index: Ac2h6NN6dVQLsM8sRKm8ajqCTXUzSAAQ2m2Q Message-ID: <99C8B2929B39C24493377AC7A121E21FC2D0B8C51E@USEA-EXCH8.na.uis.unisys.com> References: <506472FC.5090908@instagrok.com> <506496cf.81c1320a.2dfd.5f79@mx.google.com> <506B7C2A.9090503@instagrok.com> <506D0093.4090809@instagrok.com> <506D1074.1040700@instagrok.com> In-Reply-To: <506D1074.1040700@instagrok.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > From: Kirill Kireyev [mailto:kirill@instagrok.com]=20 > Subject: Re: high CPU usage on tomcat 7 > Perhaps what I need is to have the JVM do garbage collections more=20 > frequently, so that they don't become a huge CPU-hogging ordeals=20 > when they do happen. That's not how it works. The amount of time spent in a GC operation is dep= endent almost entirely on the number of live objects in the heap, not the a= mount of space being reclaimed. Having a smaller heap might improve your c= ache hit rate, but it will have little effect on the time used by GC. It is highly likely that your webapps have a memory leak. You need to use = a profiler and find out what's eating up all that memory. If you set the h= eap size to a smaller value, you should be able to provoke the situation ea= rlier, but it certainly won't fix it. - Chuck=20 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MA= TERIAL and is thus for use only by the intended recipient. If you received = this in error, please contact the sender and delete the e-mail and its atta= chments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org