-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Orb version: 5.6.0
What happened
The build failed with the following error (in "Downloading Gradle Dependencies"):
Picked up _JAVA_OPTIONS: -Xmx2g -XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap
Unrecognized VM option 'UseCGroupMemoryLimitForHeap'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Exited with code exit status 1
I noticed this orb uses a non-pinned image of react-native-community/react-native, and that image was updated last week to use JDK 11 which completely removes the UseCGroupMemoryLimitForHeap option.
I'm not that familiar with JVM options so I just changed config.yml to pass java_options without that flag and the build succeeded. Moving forward I found this article which might help decide with the defaults should be.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working