Hi Mark,

Thanks for your input. Tomcat is started up via cargo with all its default options. This is how we've always run our functional tests.

It appears that by adding new functionality (read: more JSPs, etc) we've simply reached a threshold now where we need to run the functional tests with more memory.

I'm also a little baffled why this doesn't occur on JVM 1.6 however. I verified that we also use -Xmx256m on the 1.6 JVM. (all the settings are exactly the same and the server is also started up by Cargo. The only difference is the version of the JVM)

I suppose the good thing about this is that, while analyzing these heapdumps we did find some memory inefficiencies in JIRA however. Especially to do with small leaks of the VelocityEngine (about 90Mb are taken up by the velocity engine) by JIRA code. Initially we thought this was normal, as velocity also caches the rendered velocity templates, however it looks like in very rare circumstance we're leaking the entire VelocityEngine object. We're not 100% sure yet how this happens, but we're investigating it at the moment.

We had a look at http://issues.apache.org/bugzilla/show_bug.cgi?id=37793 with Jeff Turner, but it doesn't seem that this is the major cause of the problem.

Thanks again for your help.

Cheers,
 Andreas

Mark Thomas wrote:
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

Reply via email to