Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

SUM: Tomcat dies at 167M

Shannon Scott

2004-10-05

Replies:

Thank you all who sent help.
We have a large number of jsp pages.
Our problem was fixed by setting the MaxPermSize ( -XX:MaxPermSize=256m
).
We plan to retool our pages and make them html served by apache, with an
iframe to a single jsp page that will handle the dynamic content.
Take Care.
Shannon


-----Original Message-----
From: Shannon Scott [mailto:sscott@(protected)]
Sent: Thursday, September 23, 2004 11:20 AM
To: tomcat-user@(protected)
Subject: Tomcat dies at 167M

Greetings,
Tomcat is running, and was working fine until the memory usage went up
to 167, now none of the .jsp pages will respond ( the server hangs
forever ).
The last entries from the Catalina.out are :
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError
java.lang.OutOfMemoryError

I don't understand how the JVM could be our of memory because I set it
to use 256M.
So the last time this happened, I wrote a piece of code that would leak
some memory thinking that might be somehow related, but the tomcat
process used more than 167M when I tested that page.


I have set the CATALINA_OPTS="-Xms64M -Xmx256M", and everything looks
right when I list the processes.
ps -elf | grep tomcat :

0 S tomcat4 17629   1 0 85  0   - 315671 schedu Sep21 ?
00:00:04 /usr/java/j2sdk1.4.2_03/bin/java -Xms64M -Xmx256M.

However, after the system shows 167M in top, tomcat no longer responds.
None of the tomcat logs are written to, and I find this in the mod_jk
log :

[Thu Sep 23 11:00:03 2004] [jk_ajp_common.c (738)]: ERROR: can't
receive the response message from tomcat, network problems or tomcat is
down. err=-104
[Thu Sep 23 11:00:03 2004] [jk_ajp_common.c (1137)]: Error reading
reply from tomcat. Tomcat is down or network problems.
[Thu Sep 23 11:00:03 2004] [jk_ajp_common.c (1290)]: ERROR: Receiving
from tomcat failed, recoverable operation. err=0
[Thu Sep 23 11:00:03 2004] [jk_ajp_common.c (1309)]: sending request to
tomcat failed in send loop. err=0

top output :

PID   USER   PRI NI SIZE RSS SHARE STAT %CPU %MEM  TIME CPU
COMMAND
17629 tomcat4  25   0 167M 140M 12484 S   0.0 6.9 15:40  0 java

RedHat Linux ES 3.0
Apache 2.0.46 with ( mod_jk )
Tomcat 4.1.24
Sun j2sdk 1.4.2_03

I am confused. Any help is greatly appreciated. Please let me know if
I can provide any more informative details.
Thank you for your time.
Take Care.
Shannon

PS
I have searched list archives and read the docs about tomcat
OutOfMemoryError, but none seem to address my problem.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.