Many of you might see out of memory error from jmeter and wonder how to fix it properly.

This requires a fine tuning on jmeter heap setting. 

1 thread in linux requires 1MB of space in perm gen for thread stack, so if you have 1000 users you will need at least 1000MB of PermGen ,however, you can reduce the number of stack size by specify -Xss in java options for example -Xss128k, java will use only 128KB instread of 1024KB

Make sure you have enough Heap space (Perm Gen) according to your thread