Issue Details (XML | Word | Printable)

Key: JRA-10145
Type: Task Task
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Scott Farquhar [Atlassian]
Votes: 1
Watchers: 2
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

Set tomcat flag to not re-use buffers, as they result in OutOfMemoryErrors

Created: 11/May/06 08:01 PM   Updated: 09/Jun/09 09:10 PM   Resolved: 16/May/06 09:23 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 3.7

Time Tracking:
Original Estimate: 4h
Original Estimate - 4h
Remaining Estimate: 4h
Remaining Estimate - 4h
Time Spent: Not Specified
Time Spent - Not Specified

Issue Links:
Duplicate
 
Reference
 

Participants: Anton Mazkovoi [Atlassian], Jed Wesley-Smith [Atlassian], Lőrincz István and Scott Farquhar [Atlassian]
Since last comment: 35 weeks ago
Labels:


 Description  « Hide

Currently Tomcat re-use their output buffers (ostensibly for performance), but if you serve a large amount of HTML (say 10MB) the buffers sit around forever, and don't get cleaned up. Note that Orion also has this problem.

There is a flag "org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER" that you can set which limits this. We should set it in the standalone versions, and also let people to know to set it in their own Tomcat instances.

If you are using Tomcat you must set the following in your java options:

-Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true

Note that this option is only available for Tomcat 5.5.15 and above. All earlier Tomcat 5 builds are susceptible to this problem and should be upgraded.

In JIRA Standalone this is set in the bin/setenv.sh or bin/setenv.bat by default.

If you do not set this you will get OutOfMemoryErrors.



No work has yet been logged on this issue.