Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 78087 invoked from network); 13 Dec 2007 04:26:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 04:26:42 -0000 Received: (qmail 26597 invoked by uid 500); 13 Dec 2007 04:26:19 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26583 invoked by uid 500); 13 Dec 2007 04:26:19 -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 26572 invoked by uid 99); 13 Dec 2007 04:26:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Dec 2007 20:26:19 -0800 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 mitstalks@gmail.com designates 209.85.146.179 as permitted sender) Received: from [209.85.146.179] (HELO wa-out-1112.google.com) (209.85.146.179) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 04:25:58 +0000 Received: by wa-out-1112.google.com with SMTP id m38so858644waf.16 for ; Wed, 12 Dec 2007 20:25:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=xfa5l6SS9jJb8dAF0GbJfWXeE2lWAl+Af38iXlWi4rU=; b=Ed0EsCglTvKe4a0TQwZcoAS3htrBORIjLmW76vONhv6msNrM+jQ/eieyzdm09UXxGXIQu/GCVPI5EYbF0ggFwPRPw7hU+gKnqLgvKqwr7/61m9e82mcbQ7rpfvGyiN6seFAlcog4+x21D5z5qsMRCpUbBJeNy1tYQbeGgJHXjZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ULvzyzwYlaMEPcKrwGyivqb4yQtvf3+1c09R6d7pTqvgSD+Xjr47jKNeue2dH/4DXGnmtHhbBBNNK1HUJ9SpU6NHFoJu0Wwx16uHB6QL9RzKWT8zi0BTwCzkUdvc5rI9UYej9B5ZBEhcfhEZZnLdO6f8hGrT64MkAamVaiFe0to= Received: by 10.114.178.1 with SMTP id a1mr118598waf.135.1197519959585; Wed, 12 Dec 2007 20:25:59 -0800 (PST) Received: by 10.115.58.2 with HTTP; Wed, 12 Dec 2007 20:25:59 -0800 (PST) Message-ID: Date: Thu, 13 Dec 2007 14:25:59 +1000 From: Tim To: "Tomcat Users List" , d.wall@computer.org Subject: Re: Tomcat 5.5 OutOfMemoryError (PermGen space) In-Reply-To: <47609345.1080509@computer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <47609345.1080509@computer.org> X-Virus-Checked: Checked by ClamAV on apache.org I have the same problem. I use Eclipse 3.3 and tomcat 5.5.25. Eclipse is set to "Build Automatically". When I modified the code within Eclipse, it will recompile and reload the tomcat context and the memory problem occurs here every time. I put tomcat in ${catalina.home}/conf/Catalina/localhost/appName.xml. It runs on localhost and there is only one webapp. Eclipse.ini **** -showsplash org.eclipse.platform --launcher.XXMaxPermSize 512M -vmargs -Dosgi.requiredJavaVersion=1.5 -Xms512M -Xmx1024M **** appName.log **** 13/12/2007 14:14:30 org.apache.catalina.core.StandardContext reload INFO: Reloading this Context has started 13/12/2007 14:14:32 org.apache.catalina.loader.WebappClassLoader validateJarFile Exception in thread "Timer-0" java.lang.NullPointerException at org.apache.log4j.LogManager.getLogger(LogManager.java:179) at org.apache.log4j.Logger.getLogger(Logger.java:94) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) ... ... **** Sometimes it reports Java OutOfMemory exception (java heap Space). I can't figure out whose problem it is, Eclipse? tomcat, or the code. On Dec 13, 2007 12:04 PM, David Wall wrote: > > > > > After some times, my Tomcat will stop responding and the stdout log > > says OutOfMemoryError! > > > You could try increasing the perm space with the Java option: > -XX:MaxPermSize=256m > > Obviously, you can choose any value you want. We've seen the same > problem on systems that have lots of webapps that are reloaded or newly > deployed. From time to time, we have to restart Tomcat 5.5 to get > everything clean as we run lots of webapps (50-100) in a single Tomcat > instance. > > David > > > > --------------------------------------------------------------------- > 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 > > --------------------------------------------------------------------- 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