I get this error message as I execute my JUnit tests:
java.lang.OutOfMemoryError: GC overhead limit exceeded
I know what an OutOfMemo
If you are sure there are no memory leaks in your program, try to:
-Xmx1g
. -XX:+UseConcMarkSweepGC
. If necessary, the limit check can be disabled by adding the option -XX:-UseGCOverheadLimit
to the command line.