You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When upgrading gradle from 4.10.2 to 5.1 (only variable, no other plugin changes), we observed some tests failing due to OOM in 5.1 which passed in 4.10.2 without any issue.
With further investigation, this is the command line
When upgrading gradle from 4.10.2 to 5.1 (only variable, no other plugin changes), we observed some tests failing due to OOM in 5.1 which passed in 4.10.2 without any issue.
With further investigation, this is the command line
From 4.10.2
388229 worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 2' -Djava.awt.headless=true -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -Drobolectric-deps.properties=/home/yic/t2/build/global/robolectric-deps.txt -Drobolectric.offline=true -Drobolectric.test.config=/home/yic/t2/build/projects/lib/twitter/features/onboarding/intermediates/unit_test_config_directory/debugUnitTest/generateDebugUnitTestConfig/out/com/android/tools/test_config.properties -Xverify:none -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea
From 5.1
394911 worker.org.gradle.process.internal.worker.GradleWorkerMain 'Gradle Test Executor 1' -Djava.awt.headless=true -Djava.security.manager=worker.org.gradle.process.internal.worker.child.BootstrapSecurityManager -Dorg.gradle.native=false -Drobolectric-deps.properties=/home/yic/t2/build/global/robolectric-deps.txt -Drobolectric.offline=true -Drobolectric.test.config=/home/yic/t2/build/projects/lib/twitter/features/onboarding/intermediates/unit_test_config_directory/debugUnitTest/generateDebugUnitTestConfig/out/com/android/tools/test_config.properties -Xverify:none -Xmx512m -Dfile.encoding=UTF-8 -Duser.country=US -Duser.language=en -Duser.variant -ea
Hence the difference is 5.1 has
-Xmx512m
, and 4.10.2 does not which probably defaults to 1G.Questions:
maxHeapSize
isn't supplied by user?The text was updated successfully, but these errors were encountered: