I get this error message as I execute my JUnit tests:
java.lang.OutOfMemoryError: GC overhead limit exceeded
I know what an OutOfMemo
OutOfMemo
You can also increase memory allocation and heap size by adding this to your gradle.properties file:
gradle.properties
org.gradle.jvmargs=-Xmx2048M -XX\:MaxHeapSize\=32g
It doesn't have to be 2048M and 32g, make it as big as you want.