You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2007/12/05 01:35:55 UTC
DO NOT REPLY [Bug 44022] New: - Memory Leak when closing test plan
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44022
Summary: Memory Leak when closing test plan
Product: JMeter
Version: 2.3.1
Platform: PC
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: Main
AssignedTo: jmeter-dev@jakarta.apache.org
ReportedBy: Jaroslav.Bachorik@sun.com
Steps to reproduce:
1. Open the forEachTestPlan.jmx demo plan
2. Run it few times
3. Close the test plan
Result:
If you take a heap dump and analyze it in a tool (jhat eg.) you can see there
are HttpSampleResult objects dangling.
I've analyzed the situation and there are at least 2 causes:
1. nodesToGui map in the GuiPackage class - this needs to be properly cleaned up
once the test plan is closed
2. also a ViewResultsFullVisualizer instance containing HttpSampleResults
objects is kept alive by the reference from the ResultCollector.listener field
I tried to come up with an easy fix but especially the cause nr.2 is tightly
connected to the jmeter architecture so it'd be better if someone with deeper
understanding of it would take a look at this issue
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44022] - Memory Leak when closing test plan
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44022
------- Additional Comments From sebb@apache.org 2007-12-05 04:09 -------
Unit testing shows a problem with the AbstractListener patch - clone() causes
an NPE.
However, that is easy to fix, just use:
clone.listener=this.listener;
instead of:
clone.setListener(getVisualizer());
[clone() should probably have been coded that way originally.]
I'll try some more tests and apply the patch if all goes well.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44022] - Memory Leak when closing test plan
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44022
sebb@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From sebb@apache.org 2007-12-05 11:22 -------
Seems to work OK, so added to SVN in r601473.
Had to make one more change, as the listener may not be present:
protected final Visualizer getVisualizer() {
if (listener == null){ // e.g. in non-GUI mode
return null;
}
return (Visualizer)listener.get();
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44022] - Memory Leak when closing test plan
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44022
------- Additional Comments From sebb@apache.org 2007-12-05 03:53 -------
Thanks very much - the patch looks good.
{I like the way you moved the clearTestPlan() call into GuiPackage. Neat.)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org
DO NOT REPLY [Bug 44022] - Memory Leak when closing test plan
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=44022>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=44022
------- Additional Comments From Jaroslav.Bachorik@sun.com 2007-12-05 02:12 -------
Created an attachment (id=21231)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=21231&action=view)
Should fix memory leak when closing test plans
Plz, review the patch whether it doesn't affect other functionality
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org