I have a very simple GUI application that runs HIL tests for a system. I select a test from a combo box, then click run. This starts the test and runs for 27 minutes. During this time, the CPU is capturing data and storing the data in String Builder. When the test is done, the string builder writes the captured data to a file. I ran the same test 3 times to check for memory leaks. Please look at the attached picture.
Snapshot#1: Start of the GUI Snapshot#19: End of the first try SnapShot#33: End of the second try Snapshot#38: End of the third try
if we compare 33 and 38, we can see that the objects and heap size are the same which leads me to believe that there is no memory leak.
but if we compare 19 and 33/38, we can see that the no of objects increased by 1 and the heap size increased by 0.1KB which leads me to believe that there is a small memory leak.
If we compare 1 with the others, we see that the no of objects and the heap size increased quite a bit relatively speaking.
So my question is, is there a memory leak here? How do I come to a solid conclusion?