tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Lin <tcw00l...@yahoo.com>
Subject RE: Urgent! Cannot start Tomcat - java.lang.OutOfMemoryError
Date Fri, 19 Sep 2003 13:52:36 GMT
 
in catalina.sh
 
JAVA_OPTS="-Xms64m -Xmx512m"
 
hope that helps.
 
peter

Denise Mangano <Denisem@complusdata.com> 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. 

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 
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='org.apache.struts.util.LocalStrings',
returnNull=true
Sep 19, 2003 9:01:25 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing, config='org.apache.struts.action.ActionResources',
returnNull=true
Sep 19, 2003 9:01:26 AM org.apache.struts.util.PropertyMessageResources

INFO: Initializing,
config='org.apache.webapp.admin.ApplicationResources', returnNull=true
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 
Complus Data Innovations, Inc. 
914-747-1200 

---------------------------------------------------------------------
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
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message