Gradle Test Executor X finished with non-zero exit value 143

I made this change and could verify that Gradle was started with Xmx2g and thats great. The issue hasn’t come back yet (but it is intermittent, so we’ll see), however, this change seems to have created a new problem. After changing to Xmx2g I am seeing builds hang and run forever.

The new gradle calls look like this:

./gradlew myTests --no-daemon -Dorg.gradle.jvmargs=-Xmx2g

Any idea why this is happening? My thoughts are that the daemon isn’t ending at the end of the tests or that the tests aren’t reporting when they’re done. Why would increasing max memory cause this?