Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20441 invoked from network); 3 Jul 2008 13:42:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2008 13:42:14 -0000 Received: (qmail 98645 invoked by uid 500); 3 Jul 2008 13:41:42 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98568 invoked by uid 500); 3 Jul 2008 13:41:41 -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 98557 invoked by uid 99); 3 Jul 2008 13:41:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 06:41:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of maduranga@gmail.com designates 64.233.182.189 as permitted sender) Received: from [64.233.182.189] (HELO nf-out-0910.google.com) (64.233.182.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 13:40:51 +0000 Received: by nf-out-0910.google.com with SMTP id c10so219464nfd.44 for ; Thu, 03 Jul 2008 06:40:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:reply-to :sender:to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=ArQUWv6tDRzXQuFtHIVc+cltH2Z4eTpj5IwWPaPxTPM=; b=fGY0D1Q0ntdu2Trp0EvAASfaTM0zkyCAZh9a12tGwmY/WcuzZkUUIOXxrQZ5DWta0b 68G8yqpvMumIBO0nJ/6yLYmWWn1CFKCj5hfBI6pcb7romYses2NSSvR3c76bKMCr8bbd 5k0xho+4hB6/y7iFaxeNxQF5xQXZGSOSdUd9E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:sender:to:subject:in-reply-to :mime-version:content-type:content-transfer-encoding :content-disposition:references:x-google-sender-auth; b=KFwzPb8gwf+vZKAPGKLgVgSsqM87RjSZYGsEjidPTd8QzzEnXLvlhUiy/qIl5PnYpR QZVOw3V1qQrNMgnwmVzQds+0jyEao3FcOoKHo5Yz9BxfIqm3Xp9x5uKgAVsbsrJjpsGU AI1Vmr14GUGdoPvGXtd7UG7DWjeBMy6PzBcB8= Received: by 10.210.46.14 with SMTP id t14mr9911ebt.124.1215092454530; Thu, 03 Jul 2008 06:40:54 -0700 (PDT) Received: by 10.210.39.13 with HTTP; Thu, 3 Jul 2008 06:40:54 -0700 (PDT) Message-ID: Date: Thu, 3 Jul 2008 14:40:54 +0100 From: Maduranga Reply-To: maduranga76@gmail.com Sender: maduranga@gmail.com To: users Subject: Tomcat Runs OutOfMemory (Not at repeated WAR deployments) In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Google-Sender-Auth: 5d487ffcf36a0db8 X-Virus-Checked: Checked by ClamAV on apache.org Hi, Tomcat version "5.5.20" Java version "1.5.0_09" I run a production system with an single WAR file which communicates to an outside-world web-service via a ActiveMQ. Also it connects to an FTP service and does some image manipulation as well. Spring is being used for IOC, and JDBC (JDBCTemplate of Spring) is used for persisting. When there are heavy queries on server, even though the free memory is there for JVM it quickly utilizes memory and JVM seems not to garbage collect even after users logging out. I changed many JVM parameters with no luck and currently it is: -server -Xms512m -Xmx2048m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:SurvivorRatio=4 Found a couple of articles on Tomcat classloader issue, but this is not rellay at the deployment of the WAR. Any advice is welcome to enhance this massive page loading slowness and out-of-memory problem. Thanks Maduranga -- Maduranga --------------------------------------------------------------------- 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