I get this error message as I execute my JUnit tests:
java.lang.OutOfMemoryError: GC overhead limit exceeded
I know what an OutOfMemo
you can try to make changes on the server setting by referring to this image and increase the memory size for processing process changes highlighted in yellow
you can also make changes to java heap by opening cmd-> set _java_opts -Xmx2g
2g(2gigabytes) depending upon the complexity of your program
try to use less constant variable and temp variables