Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 95006 invoked from network); 2 May 2008 12:50:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2008 12:50:22 -0000 Received: (qmail 90368 invoked by uid 500); 2 May 2008 12:50:10 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 90344 invoked by uid 500); 2 May 2008 12:50:10 -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 90333 invoked by uid 99); 2 May 2008 12:50:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 05:50:10 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=FM_FAKE_HELO_VERIZON,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dckerber@verizon.net designates 206.46.252.40 as permitted sender) Received: from [206.46.252.40] (HELO vms040pub.verizon.net) (206.46.252.40) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 12:49:17 +0000 Received: from [127.0.0.1] ([216.41.111.254]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K0800KMARTA0Z56@vms040.mailsrvcs.net> for users@tomcat.apache.org; Fri, 02 May 2008 07:53:39 -0500 (CDT) Date: Fri, 02 May 2008 08:49:16 -0400 From: David kerber Subject: Re: CPU usage quirk with multiple tomcat instances In-reply-to: To: Tomcat Users List Message-id: <481B0DCC.7090609@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit References: User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) X-Virus-Checked: Checked by ClamAV on apache.org Lists wrote: > Hi, > > We have a Tomcat app that is loadbalanced by hardware. I have 4 boxes > available in our test env, all of which vary slightly but not massively in > spec. > > Anyway I moved from 2 tomcat instances on each machine ( listening on > different ports ) down to 1 and I noticed for the same load the cpu > utilisation dropped by 20%. Interesting, how can this be explained? Is > My guess (and that's all it is) is that you have eliminated much of the context-switching overhead that two instances would have compared to one. > this the extra effort in tomcat or something? Or is it memory related? the > 2 instances had 1gb each, and the single one has been given 4gb. However I > have jprofiled the instance and it has never seemed memory hungry. Anyway I > suspect even at 2gb for 1 instance it would still be 20% less cpu - i can > always do a run to prove this if people think that necessary.. > > Another thing i've found is that on one server I have abnormally high CPU > utilisation for the same load. I've checked the logging levels are all the > same as are the java VM and the VM config settings. I wonder what else > could cause this? All i can think is some sort of OS or hardware > malfunction! maybe the CPU cache is duff or something. > What is this cpu (type and speed) compared to the others? If it's a slower or less-capable (no numeric coprocessor, etc) cpu, the same load would be a high percentage of its capability. > Many thanks to any input to my Friday weird-ness! > Dan > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org