We randomly get Max Heap Space on our android builds #3201
Replies: 1 comment 1 reply
-
Hi @joaquinvaz, this error is expected because of the fact that your project's Gradle tasks require more powerful machines with more heap space available, so you can switch to M4 or Linux machines with more power that Codemagic offers. I suggest you check this blog for more information. Check this doc page as well. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?
React Native
Steps to reproduce
We get this out of memory error randomly (sometimes it works), and the build fails. Doesn't generate the build. It makes us waste a lot of build minutes.
We have these configs. But they don't seem to work.
gradle.properties:
org.gradle.jvmargs=-Xmx8g -XX:MaxMetaspaceSize=2g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
Expected results
Should run the builds correctly all the time.
Actual results
About 40-50% of the time, builds fail with this error.
Build id (optional)
No response
Beta Was this translation helpful? Give feedback.
All reactions