Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52387 invoked from network); 29 Dec 2008 15:19:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Dec 2008 15:19:57 -0000 Received: (qmail 3395 invoked by uid 500); 29 Dec 2008 15:19:45 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 3371 invoked by uid 500); 29 Dec 2008 15:19:45 -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 3360 invoked by uid 99); 29 Dec 2008 15:19:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 07:19:45 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rc46fi@googlemail.com designates 209.85.218.13 as permitted sender) Received: from [209.85.218.13] (HELO mail-bw0-f13.google.com) (209.85.218.13) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Dec 2008 15:19:35 +0000 Received: by bwz6 with SMTP id 6so12919326bwz.0 for ; Mon, 29 Dec 2008 07:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=fe3jkdtBbBlnLSMRd7onV2nQYWgG5L9R9Vk9O0R/KrU=; b=BEvETE1ECsLoTz2P8I3wLBzlEvT5w1vKCbZ7nQ1qsYbLQC0ez4xVKe39wxqqohcukP j2u4Dp6/ItL9MTSbWGjoHw9g5U94D+75sM0Sk8ungJmp5sqHCn24m112YhzekSxBfBNq I2QyoPS0/O6DM0ASkjXXekj5/7I0PZFPt0gw0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EvonXzOYyO4K5o4+ycc3q5xVq+b9qndUdMt/uTcfUCt0oKxXWHGIC4Yr8fXOsP4SMh e8sQV+rfMbHvwskslUPoMdpG187JBsXYeUIVVr4CG8SOWSNSFm1vNrE9s8n44R580bAF lMSQg9Vb32c3B8H5cdCc9S+qgyp13MBoiEcrc= Received: by 10.181.61.7 with SMTP id o7mr4286956bkk.51.1230563954618; Mon, 29 Dec 2008 07:19:14 -0800 (PST) Received: by 10.180.209.4 with HTTP; Mon, 29 Dec 2008 07:19:14 -0800 (PST) Message-ID: Date: Mon, 29 Dec 2008 16:19:14 +0100 From: "Gregor Schneider" To: "Tomcat Users List" Subject: Re: Optimizing Tomcat with Http11NioProtocol? In-Reply-To: <21200419.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <21200419.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Nodje, first, the post from Yassine contains some very valuable information. To me, it looks as if you're fishing in blur waters, since you've got no idea what might be the bottleneck. Maybe some additional hints: - If you're serving quite some of statical content, the Apache Portable Runtime (APR) might be a good choice: http://tomcat.apache.org/tomcat-5.5-doc/apr.html - you might nwat to consider upgrading Tomcat and Java to the latest version: Java6 had some performance-optimizations, same - if I'm not mistaken - goes for Tomcat On Mon, Dec 29, 2008 at 9:57 AM, nodje wrote: > > > Providing it comes from the Java application side (by the way, any tips on > how to precisely identify that is more than welcome), and providing that the > problems come from too many requests, would Http11NioProtocol help Tomcat > speed up the execution? If it really comes from your application, you better check the code of your application first trying to optimize it. Only when you're sure that your code is clean, proceed to tune Tomcat > It seems worth trying Http11NioProtocol before going for clustering+load > balancing. Any advice on the matter? > Should be an option, however, bear in mind that you'll have to move to Tomcat 6 since HttpNio is not available with older versions > Also we think that request that cannot b served in the reasonable time > should be refused. Taking into account the described behaviour with the > default maxThreads=150 and acceptCount =100 values, shouldn't we decrease > the acceptCount? Since the default HttpConnector is blocking and your cpu is idleing and your memory-usage low, I guess you rather should increase the maxThreads and acceptCount I suggest you play around with those parameters using JMeter as your testing-tool. You'll find out pretty fast how those parameters affect the overall performance > Tomcat is on a Windows 32bits machine, so even though the machine has 4Gb of > RAM, the MAX -Xmx size that we can be used seems to be around 1200Mb. Would > a 64bits OS automatically allows for more memory usage? yes Cheers Gregor -- just because your paranoid, doesn't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org