I've recently switched from 2.13 JMeter to 5.1. In 2.13 when java gave out of memory error, I clicked Clear all
button and it helped. Now in 5.1 I've got error.
ERROR:o.a.j.JMeter: Uncaught exception: java.lang.OutOfMemoryError: Java heap space
After some runs and some data accumulated in view results tree, but clear button does not help - view results tree becomes empty but error persists and Java mission control shows heap have not been reduced. Could it be some incorrect JMeter config or?
ADDED: Thank you for heap size settings tips. It's for smoke (debug) runs, I know I can increase heap, the question is as stated about clear command behavior and possible difference between versions.
BTW, I've also tried do invoke GC jcmd <pid as reported by task manager in windows> GC.run
as per How do you Force Garbage Collection from the Shell? - head was not reduced, which as I understand means JMeter does not release pointers to old java objects.