Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 72798 invoked from network); 30 Sep 2009 13:48:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Sep 2009 13:48:12 -0000 Received: (qmail 78285 invoked by uid 500); 30 Sep 2009 13:48:08 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78254 invoked by uid 500); 30 Sep 2009 13:48:08 -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 78227 invoked by uid 99); 30 Sep 2009 13:48:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2009 13:48:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christian.stoeber@googlemail.com designates 209.85.219.211 as permitted sender) Received: from [209.85.219.211] (HELO mail-ew0-f211.google.com) (209.85.219.211) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Sep 2009 13:47:56 +0000 Received: by ewy7 with SMTP id 7so6614287ewy.41 for ; Wed, 30 Sep 2009 06:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=kspMxGOftCkzcOakzhnVZlgnDeWS+YAvwtYorjdmFEY=; b=img7F1Wa41df4OogIKpc+TqltYz3gYlz9RD4tfNBGPpmhnazua86gQ7zaefvXMB9sp pAgzKvVcexg9r0dWQO/NnPHQ5FdM6656vWVJRDUP6Zb24MiiJCrF/6pWM+V+HN8pjQk6 oOFLNvgA/XHTd5HA0LHkm27gVJdEV8yRos2+M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=wF2qV9ZnP7Ea45+RE4OOlrCtzsMykasNQkakWaSjxUhqaEub+h/fHPbdxOPtgwcIHO R2WODZLEqVp8StAeNrPsYEvbapJheOiCzFR/9dNqyVVIMzhU8+ph7kKrP61p0AS+wP46 NUPtiT0jI1hbC31YvUnceWdBwp0hw+tQyH9Bo= Received: by 10.211.129.20 with SMTP id g20mr6204376ebn.14.1254318455227; Wed, 30 Sep 2009 06:47:35 -0700 (PDT) Received: from ?192.168.7.27? (i59F5632A.versanet.de [89.245.99.42]) by mx.google.com with ESMTPS id 7sm133512eyg.9.2009.09.30.06.47.33 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 30 Sep 2009 06:47:33 -0700 (PDT) Message-ID: <4AC3616E.9030706@googlemail.com> Date: Wed, 30 Sep 2009 15:47:26 +0200 From: =?ISO-8859-15?Q?Christian_St=F6ber?= User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: Memory behavior: Tomcat versus Jetty Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hello list, we are about to migrate our webserver cluster from Jetty 5.1.14 to Tomcat 6.0.20. Currently there are four servers in our cluster with simple load balancing and no session clustering. At the moment we are testing Tomcat on 2 nodes of our cluster (also no session clustering yet). 2 remains with Jetty. Same WAR file an the same environment. Our first test ends in an OutOfMemoryError after two days. The java vm of the Tomcat servers has the same memory parameters as the server with the Jetty: -Xmx512m. And no other special GC parameters. Apperently the Tomcat needs more memory than Jetty. So we are trying to give Tomcat more memory: -Xmx768m. After two days the Tomcat is still running fine. Obviously Tomcat needs just a little bit more memory than Jetty. After these two days we can state the following memory behavior. Node Mem used Mem reserved 1 TC 400m 530m 2 TC 350m 495m 3 J 230m 350m 4 J 290m 400m Averagely Tomcat is using round about 110m more memory than Jetty. But why? I have seen that the Tomcat DefaultServlet may cache content up to 10m per default. But that are only 10m. Are there some other things Tomcat may cache and Jetty does not? Do you have any experiences? Thanks in advance Christian --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org