org.apache.coyote.tomcat5.CoyoteAdapter service error.

Experts,

Recently I'm getting this error and tomcat shutdown automatically (within a week it happend 3 times).  Please can you help me to resolve this and explain to me what is the reason behind.

JDK 1.5
Tomcat 5


org.apache.coyote.tomcat5.CoyoteAdapter service
SEVERE: An exception or error occurred in the container during the request processing
java.lang.OutOfMemoryError
      at java.util.zip.ZipFile.open(Native Method)
      at java.util.zip.ZipFile.<init>(ZipFile.java:203)
      at java.util.jar.JarFile.<init>(JarFile.java:132)
      at java.util.jar.JarFile.<init>(JarFile.java:97)
      at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1549)
      at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1771)
      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1575)
      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
      at java.beans.Introspector.instantiate(Introspector.java:1453)
      at java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
      at java.beans.Introspector.<init>(Introspector.java:359)
      at java.beans.Introspector.getBeanInfo(Introspector.java:159)
      at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:949)
      at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptors(PropertyUtils.java:979)
      at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:887)
      at org.apache.commons.beanutils.PropertyUtils.getSimpleProperty(PropertyUtils.java:1172)
      at org.apache.commons.beanutils.PropertyUtils.getNestedProperty(PropertyUtils.java:772)
      at org.apache.commons.beanutils.PropertyUtils.getProperty(PropertyUtils.java:801)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:144)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:702)
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:644)
      at java.lang.Thread.run(Thread.java:595)
Exception in thread "Thread-105001" java.lang.OutOfMemoryError: unable to create new native thread
      at java.lang.Thread.start0(Native Method)
      at java.lang.Thread.start(Thread.java:574)
      at sun.net.www.http.KeepAliveCache$1.run(KeepAliveCache.java:89)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.http.KeepAliveCache.put(KeepAliveCache.java:75)
      at sun.net.www.http.HttpClient.putInKeepAliveCache(HttpClient.java:362)
      at sun.net.www.http.HttpClient.finished(HttpClient.java:350)
      at sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:71)
      at sun.net.www.MeteredStream.justRead(MeteredStream.java:75)
      at sun.net.www.MeteredStream.skip(MeteredStream.java:136)
      at sun.net.www.http.KeepAliveStream.close(KeepAliveStream.java:64)
      at java.io.FilterInputStream.close(FilterInputStream.java:159)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.close(HttpURLConnection.java:2195)
      at sun.net.www.protocol.http.HttpURLConnection.disconnect(HttpURLConnection.java:1855)
      at com.newbreed.enbrace.fx.scheduleagent.ScheduleAgent$JobThread.notifyListener(ScheduleAgent.java:219)
      at com.newbreed.enbrace.fx.scheduleagent.ScheduleAgent$JobThread.notifyListener(ScheduleAgent.java:148)
      at com.newbreed.enbrace.fx.scheduleagent.ScheduleAgent$JobThread.markTaskCompleted(ScheduleAgent.java:87)
      at com.newbreed.enbrace.fx.scheduleagent.ScheduleAgent$JobThread.run(ScheduleAgent.java:60)

Thanks in advance!
nbuserAsked:
Who is Participating?
 
ramazanyichConnect With a Mentor Commented:
I would add following into startup.bat file (put it somewhere in begin):
set JAVA_OPTS=-Xmx756M -XX:MaxPermSize=512M

if you use startup.sh (UNIX):
JAVA_OPTS=-Xmx756M -XX:MaxPermSize=512M

Those settings will increase maximum memory which could be used by JVM.
0
 
legolasthehansyCommented:
From your logs it looks like Java doesn't have much memory to run
"java.lang.OutOfMemoryError"

See these links to configure JVM for additional memory. You will need to restart services to reflect the new settings.

http://rifers.org/blogs/gbevin/2005/4/21/get_rid_of_outofmemoryerror
http://javarevisited.blogspot.com/2011/09/javalangoutofmemoryerror-permgen-space.html
http://stackoverflow.com/questions/37335/how-to-deal-with-java-lang-outofmemoryerror-java-heap-space-error-64mb-heap
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.