Skip to content

Conversation

@satsukies
Copy link
Member

Workflow of Release artifacts was failed with java.lang.OutOfMemoryError: Metaspace.
But the workflow of Build and test projects was successful.

Build and test projects has GRADLE_OPTS env and defined max size of Java heap memory and metaspace for the gradle deamon.

So, I think we can fix this by setting GRADLE_OPTS in your workflow file.

@satsukies satsukies self-assigned this Aug 1, 2024
@satsukies satsukies requested a review from henteko August 1, 2024 06:49
Copy link
Member

@henteko henteko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have confirmed that it is the same as here!

GRADLE_OPTS: -Dorg.gradle.jvmargs="-Xmx4g -XX:MaxMetaspaceSize=2g -Dkotlin.daemon.jvm.options=-Xmx1536m"

LGTM!

@satsukies
Copy link
Member Author

Thank you for your quick reaction and review!

@satsukies satsukies merged commit e0501e8 into master Aug 1, 2024
@satsukies satsukies deleted the fix/release-workflow-failed-with-oom branch August 1, 2024 06:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants