I get this error message as I execute my JUnit tests:
java.lang.OutOfMemoryError: GC overhead limit exceeded
I know what an OutOfMemo
To increase heap size in IntelliJ IDEA follow the following instructions. It worked for me.
For Windows Users,
Go to the location where IDE is installed and search for following.
idea64.exe.vmoptions
Edit the file and add the following.
-Xms512m
-Xmx2024m
-XX:MaxPermSize=700m
-XX:ReservedCodeCacheSize=480m
That is it !!