PDA

View Full Version : Tomcat memory leak with large JSP pages - looking for confirmation


Kees de Kooter
04-08-2008, 08:17
In the installation documents of JIRA I came across the following issue. According to the Atlassian folks (and who am I to doubt them):


All versions of Tomcat effectively leak memory by caching JSPs, which can result in OutOfMemoryErrors if large pages JIRA (eg. RSS or Excel) are requested.


More on this in their issue tracker: http://jira.atlassian.com/browse/JRA-10145

This might explain problems I had in the past when rendering a huge sitemap. Can anyone of u guys confirm this issue?

cheers,
Kees

zwets
07-08-2008, 16:49
No need to doubt the friendly folks at Atlassian. I ran into the out-of-memory issue with Jira on Tomcat 5.5.20. The proposed fix solved it.

Note that the memory leak is 'by design'. The Tomcat developers argue that the size of an html/body should never be in the multi-MB range.

Marco