Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 63886 invoked from network); 29 Oct 2004 17:25:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 29 Oct 2004 17:25:04 -0000 Received: (qmail 77434 invoked by uid 500); 29 Oct 2004 17:24:19 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 77335 invoked by uid 500); 29 Oct 2004 17:24:18 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 77320 invoked by uid 99); 29 Oct 2004 17:24:18 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [195.143.155.10] (HELO elmo.2sheds.de) (195.143.155.10) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 29 Oct 2004 10:24:17 -0700 Received: from localhost (localhost [127.0.0.1]) by elmo.2sheds.de (Postfix) with ESMTP id 2F6533D55 for ; Fri, 29 Oct 2004 19:24:14 +0200 (CEST) Received: from elmo.2sheds.de ([127.0.0.1]) by localhost (elmo [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20780-01 for ; Fri, 29 Oct 2004 19:24:13 +0200 (CEST) Received: from [10.0.160.200] (tal.friendscout24.de [212.18.1.102]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by elmo.2sheds.de (Postfix) with ESMTP id 012D93D0F for ; Fri, 29 Oct 2004 19:24:12 +0200 (CEST) Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <27e674a9041029100845d180df@mail.gmail.com> References: <49FAD908-29BA-11D9-A610-000393758B2E@2sheds.de> <27e674a9041029080212c95f21@mail.gmail.com> <0AAE0CF0-29BE-11D9-A610-000393758B2E@2sheds.de> <27e674a9041029083128b99c40@mail.gmail.com> <41826549.7040708@apache.org> <27e674a9041029085313bd3c91@mail.gmail.com> <27e674a9041029100845d180df@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <56D8B0E8-29CF-11D9-A610-000393758B2E@2sheds.de> Content-Transfer-Encoding: 7bit From: Andrew Miehs Subject: Re: Tomcat in a High Traffic Environment Date: Fri, 29 Oct 2004 19:24:07 +0200 To: "Tomcat Users List" X-Mailer: Apple Mail (2.619) X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at 2sheds.de X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On 29.10.2004, at 19:08, Peter Lin wrote: > if you're looking for better client performance I would explore other > areas first. > > 1. use gzip compression - this can reduce the html to 1/10th the size. > your mileage will vary. > This is being looked at - loadbalancer vrs tomcat > 2. caching results on the web-tier Very dynamic content > > 3. putting the images on a dedicated image server > Already being done. 2x Servers running apache - which also have this keep-alive problem. Running 1000 threads per server is NOT my idea of a good time. I will be having a look at a couple of other alternatives to apache over the next couple of weeks. Due to operating system/ kenerl overheads time for one request <> (time for 10 parallel requests)/10 <> (time for 1000 parallel requests)/1000 Squid is a good example of how you can server MANY connections without starting thousands of threads. > 4. distributing your servers across multiple ISP. many service > providers don't tell you this, but often their pipe is saturated and > can't really handle a large number of concurrent requests. if you host > your own servers i would recommend getting more than 1 connection and > use different providers This is NOT a pipe saturation issue. The issue is definitely a tomcat/ number of connections issue. I already have this problem in my local network with load tests. > > Most browsers today are Http1.1 compliant, which means they are > limited to 2 connections to the same server. Normally the browser will > use the same connection to get the html and the other resources like > images and javascript. > This will only happen if keep-alives are enabled. If keep-alives are disabled each GET will be a new connection. The F5 load balancers (4.5) have a 'cool-feature?!' that 'forwards' the keep-alive connection through to the backend server - With the 4.5 version of the software they are doing packet mangling. This means that even though the cllient only has 2 connections, the load balancer multiplies this connection to EACH of the backend servers with which the client is communicating, ie: static servers get 2 connections per client, statistic servers get 2 connections per client, tomcats get 2 connections per client.. Version 9 of the software has just come out, and it does proxying this should hopefully help solve this problem - I am still in the process of testing the new version. Andrew --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org