Docker Process 'Gradle Test Executor 8' finished with non-zero exit value 137


(Horcrux7) #1

If our Build Jobs run inside a Docker container then we receive continue the error:

Process ‘Gradle Test Executor 8’ finished with non-zero exit value 137

It sound like that Gradle consume to many memory through pooling of JVM’s. The docker container is limit to 4 GB. The Gradle options limits the Java memory to 1 GB. This should be enough.

Are there any recommendation to handle this?


(Tobias Jenkner) #2

I also had this problem and found a workaround by setting

test {
	maxHeapSize = "128m"
}

Cheers, Tobias.