Bug 52064 - OutOfMemory Risk in CacheManager
OutOfMemory Risk in CacheManager
Status: RESOLVED FIXED
Product: JMeter
Classification: Unclassified
Component: HTTP
2.5.1
All All
: P2 major (vote)
: ---
Assigned To: JMeter issues mailing list
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2011-10-20 11:12 UTC by Philippe Mouawad
Modified: 2011-10-20 19:09 UTC (History)
1 user (show)



Attachments
Test plan to reproduce issue (13.90 KB, application/xml)
2011-10-20 19:08 UTC, Philippe Mouawad
Details
Memory behaviour before fix (86.26 KB, image/png)
2011-10-20 19:08 UTC, Philippe Mouawad
Details
Memory behaviour after fix (170.01 KB, image/png)
2011-10-20 19:09 UTC, Philippe Mouawad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2011-10-20 11:12:05 UTC
Hello,
I am doing some tests on an application that uses GET requests with a parameter nocache generated for each request.
This application generates this request every second.

So I simulated this and ran an endurance test.

I noticed JMeter memory increased during the test.
I made a Heap Dump and saw that CacheManager was overwhelmed by this request.

There is of course an issue with WebServer config that should add Expires Header but I think we should protect JMeter from this by limiting size on Cachemanager HashMap,
as it is the case for a real browser that has a limited memory size for cache.
Comment 1 Philippe Mouawad 2011-10-20 11:12:29 UTC
Concerns nightly at 20 october 2011
Comment 2 Philippe Mouawad 2011-10-20 19:08:06 UTC
Created attachment 27829 [details]
Test plan to reproduce issue

Add a static index.html file in Apache Tomcat webapps/ROOT folder.
Comment 3 Philippe Mouawad 2011-10-20 19:08:54 UTC
Created attachment 27830 [details]
Memory behaviour before fix
Comment 4 Philippe Mouawad 2011-10-20 19:09:19 UTC
Created attachment 27831 [details]
Memory behaviour after fix
Comment 5 Philippe Mouawad 2011-10-20 19:09:38 UTC
Date: Thu Oct 20 19:07:13 2011
New Revision: 1186994

URL: http://svn.apache.org/viewvc?rev=1186994&view=rev
Log:
Bug 52064 - OutOfMemory Risk in CacheManager

Modified:
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties
   jakarta/jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/control/CacheManager.java
   jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/CacheManagerGui.java
   jakarta/jmeter/trunk/xdocs/changes.xml