From Denisem@complusdata.com Fri Sep 19 13:57:04 2003 Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 98752 invoked from network); 19 Sep 2003 13:57:04 -0000 Received: from unknown (HELO ComplusExch1.complusdata.hq) (12.42.32.217) by daedalus.apache.org with SMTP; 19 Sep 2003 13:57:04 -0000 Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError Date: Fri, 19 Sep 2003 09:57:36 -0400 Message-ID: <468E4BCF164C944E88DF9F70D15FFA750A67FB@complusexch1.complusdata.hq> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError content-class: urn:content-classes:message Thread-Index: AcN+tWaM9bVoGKUwQSSfRZHRgM9tiQAAG+Bg X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 From: "Denise Mangano" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Peter - thanks for the response. Can I just add that at the very beginning of the script, or do I have to put that anywhere in particular? I don't want to override anything else that might be happening to JAVA_OPTS throughout the script? Thanks again. Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -----Original Message----- From: Peter Lin [mailto:tcw00lfel@yahoo.com]=20 Sent: Friday, September 19, 2003 9:53 AM To: Tomcat Users List Subject: RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError =20 in catalina.sh =20 JAVA_OPTS=3D"-Xms64m -Xmx512m" =20 hope that helps. =20 peter Denise Mangano wrote: I am about to download and run JMP (Java Memory Profiler) to test my application for memory leaks to prevent this from happening again.=20 However, I'm searching and searching on how to fix it for now. What I have come across is adding the following flags to the java execution command: -ms64M -mx512M So my questions are: 1. Will adding this allow me to deploy Tomcat, or is there some other way I have to free up the memory. 2. I apparently have to add this to my catalina.sh, but I am not exactly sure where to add it... Any idea? I can post file if necessary. Thanks for any help :) Denise Mangano Complus Data Innovations, Inc. 914-747-1200 -----Original Message----- From: Denise Mangano=20 Sent: Friday, September 19, 2003 9:31 AM To: to Subject: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError Hi all. I am running Apache 1.3.28, mod_jk 1.2, Tomcat 4.1.27 on a RH Linux 7.3 box with j2sdk 1.4.2. We had a power outage last night, and I have been trying to restart Tomcat and Apache, but Tomcat will not start. I have tried searching the archives, but I can't seem to figure out where to start with trying to fix this problem. Any help is GREATLY appreciated... It's urgent that I get this up and running asap. This is the output from my catalina.out: Starting service Tomcat-Standalone Apache Tomcat/4.1.27 Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config=3D'org.apache.struts.util.LocalStrings', returnNull=3Dtrue Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config=3D'org.apache.struts.action.ActionResources', returnNull=3Dtrue Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources INFO: Initializing, config=3D'org.apache.webapp.admin.ApplicationResources', = returnNull=3Dtrue Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.(ThreadP ool.java:582) at org.apache.tomcat.util.threads.ThreadPool.openThreads(ThreadPool.java:46 0) at org.apache.tomcat.util.threads.ThreadPool.start(ThreadPool.java:179) at org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint .java:300) at org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:161) at org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:118 0) at org.apache.catalina.core.StandardService.start(StandardService.java:506) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190) at org.apache.catalina.startup.Catalina.start(Catalina.java:512) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) ... 5 more Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread at java.lang.Thread.start(Native Method) at java.lang.Shutdown.runHooks(Shutdown.java:126) at java.lang.Shutdown.sequence(Shutdown.java:165) at java.lang.Shutdown.exit(Shutdown.java:210) at java.lang.Runtime.exit(Runtime.java:90) at java.lang.System.exit(System.java:715) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:208) Denise Mangano=20 Complus Data Innovations, Inc.=20 914-747-1200=20 --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software