tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tamer Embaby" <Tamer.Emb...@itworx.com>
Subject Out of memory exception in Tomcat 4.0.4
Date Mon, 09 Aug 2004 09:06:56 GMT
Hi geeks,

I get this error on daily basis now for 10 days, my machine is loaded 
a little bit (More info below).

Exception:

2004-08-08 19:40:21 StandardWrapperValve[CAL]: Servlet.service() for
servlet CAL threw exception
javax.servlet.ServletException: Servlet execution threw an exception
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:243)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:190)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.ja
va:246)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:234
7)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:170)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468
)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:564)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
        at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.ja
va:566)
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
72)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
        at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.j
ava:1027)
        at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:
1125)
        at java.lang.Thread.run(Thread.java:534)
----- Root Cause -----
java.lang.OutOfMemoryError

Output of vmstat:
 procs     memory            page            disk          faults
cpu
 r b w   swap  free  re  mf pi po fr de sr s0 s1 s1 --   in   sy   cs us
sy id
 0 0 23 715224 62376  1   4 14  5  5  0  0  3  1  0  0  237  393  525 70
1 30
 0 1 35 838112 8984  54  53 1080 64 64 0 0 89  0  0  0 1090 1964 1387 36
15 50
 0 1 35 838112 8832  31  27 904 16 16 0  0 93  0  0  0  930 1739 1148 33
6 61
 0 1 35 838112 8728   9   6 808 0  0  0  0 82  0  0  0  871 1605 1059 27
12 61
 0 0 35 838112 8800   6   1 680 760 752 0 0 111 0 0  0 1188 1714 1374 27
8 65
 0 0 35 838112 9296  35  33 400 0  0  0  0 154 0  0  0 1049 1340 1079 24
4 72
 0 0 35 838112 9008  35  28 752 0  0  0  0 89  0  0  0  964 2422 1736 41
7 52
 
swap usage as per "swap -s"
total: 457816k bytes allocated + 117392k reserved = 575208k used,
838128k available

This is Netra t1 (UltraSPARC-IIi 440MHz) machine with, 512 Megabytes,
running:
SunOS nitro 5.8 Generic_108528-03 sun4u sparc
SUNW,UltraSPARC-IIi-cEngine

Tomcat version: Apache Tomcat/4.0.4

Command line option:
/export/home/arabic/j2sdk1.4.2_04/bin/java -Djava.awt.headless=true \
-Xms32m -Xmx128m -Djava.awt.headless=true \
-Djava.endorsed.dirs=/opt/tomcat-vsky-test/bin:/opt/tomcat-vsky-test/com
mon/lib:/\
export/home/arabic/xalan-j_2_6_0/bin/ \
-classpath /export/home/arabic/j2sdk1.4.2_04/lib/tools.jar:\
/opt/tomcat/common/lib/classes12.jar:/opt/tomcat/common/lib/servlet.jar:
\
/opt/tomcat-vsky-test/bin/bootstrap.jar
-Dcatalina.base=/opt/tomcat-vsky-test \
-Dcatalina.home=/opt/tomcat-vsky-test
-Djava.io.tmpdir=/opt/tomcat-vsky-test/temp \
org.apache.catalina.startup.Bootstrap start

Is getting more memory for this machine is my only option?
Is playing around with -X?? options of Java will help me, Solaris is
supposed
to do good job of handeling virtual memory. Or is it aleak some where in

Java/Tomcat.

I did my home work and searched the archive and found similar issues but
for Windows, so it have difference solution/reasons.

Thank you all in advance.

--
Tamer Embaby <tamer(dot)embaby(at)itworx(dot)com>

" f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng. "



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message