polarnik commented on issue #6336:
URL: https://github.com/apache/jmeter/issues/6336#issuecomment-2656895538

   ## View Result Tree has a memory leak for the last selected item
   
   ### Test 1, don't select anything
   
   Steps:
   - Start the test with 5 iteration
   - Don't open a component View Result Tree
   - Click the JMeter GUI button **Clear All** 
   - java GC
   
   Actual Result:
   - + 6 GiByte memory allocation
   -
   -
   - 0 memory usage
   
   
![Image](https://github.com/user-attachments/assets/7cb063b5-dd65-4a5a-9dca-2111870b89db)
   
   ### Test 2, select an item in a View Result Tree
   
   Steps:
   - Start the test with 5 iteration
   - Click by any item of the View Result Tree
   - Click the JMeter GUI button **Clear All** 
   - java GC
   
   Actual Result:
   - + 6 GiByte memory allocation
   -
   -
   - 3 GiByte memory usage
   
   The First GC Root for the first big object:
   - responseData in org.apache.jmeter.samplers.SampleResult#2
     - sampleResult in org.apache.jmeter.visualizers.RenderAsText#1
       - resultsRender in 
org.apache.jmeter.visualizers.ViewResultsFullVisualizer#1
         - [0] in java.lang.Object[]#20205 : 10 items
           - elementData in java.util.ArrayList#543 : 1 element
             - component in javax.swing.JViewport#2
               - viewport in javax.swing.JScrollPane#2
                 - mainPanel in org.apache.jmeter.gui.MainFrame#1 [GC root - 
JNI global] : Thread Group.jmx 
(/Users/Viacheslav.Smirnov/IdeaProjects/github.com/polarnik/Thread Group.jmx) - 
Apache JMeter (6.0.0-SNAPSHOT 6d39ac6)
   
   
![Image](https://github.com/user-attachments/assets/1a903b59-cfbf-4b81-893d-159e17d077c5)
   
   The second GC Root for the second big object:
   - value in java.lang.String#71821 : 
eq2KPpD78ptL+uQIgIUJ8hnJSLKoQLOAyvhOJSBR+HI3Lw8TAq9I7NhGc54Edsl7CkA/52h85T7xmjJzvy2NfJVYZ2dv7aONCerjwZTLX+UBebZOZWou5XnY9lbuFe23tnk4n3t90Fp3/hkvsgpl7jdgZO8/pA2e...
     - responseDataAsString in org.apache.jmeter.samplers.SampleResult#2
       - sampleResult in org.apache.jmeter.visualizers.RenderAsText#1
         - resultsRender in 
org.apache.jmeter.visualizers.ViewResultsFullVisualizer#1
           - [0] in java.lang.Object[]#20205 : 10 items
             - elementData in java.util.ArrayList#543 : 1 element
               - component in javax.swing.JViewport#2
                 - viewport in javax.swing.JScrollPane#2
                   - mainPanel in org.apache.jmeter.gui.MainFrame#1 [GC root - 
JNI global] : Thread Group.jmx 
(/Users/Viacheslav.Smirnov/IdeaProjects/github.com/polarnik/Thread Group.jmx) - 
Apache JMeter (6.0.0-SNAPSHOT 6d39ac6)
   
   
![Image](https://github.com/user-attachments/assets/78d39afc-bbe8-41c7-ac7b-f026da31fd61)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to