tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: OutOfMemory problem on Tomcat 5.5.20 and Java 1.5
Date Wed, 11 Apr 2007 04:26:56 GMT
Andreas Knecht wrote:
> Just a quick addition.  The memory dump is now available here:
> http://repository.atlassian.com/temp/java_pid27558.hprof.gz
> 
> Cheers,
>   Andreas
> 
You appear to be running Tomcat in development mode.
(http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html)

This means that source of every JSP is held in memory to provide
detailed messages in the event of an error. If you have large JSPs
this will hurt. It looks like this accounts for 50MB+

The compiled JSPs account for 80MB+. I am guess there is a lot of text
in some of these JSPs.

This doesn't explain why you don't see the error on a 1.6 jvm. Are you
sure you are still using 256MB of RAM with the 1.6 jvm?

27% of your memory is used by char[]. Have you read
http://issues.apache.org/bugzilla/show_bug.cgi?id=37793 ? It might
offer some insight.

HTH,

Mark



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message