fix(mc): resolve JVM GC conflict — disable Aikar flags, use ZGC#9895
Merged
fix(mc): resolve JVM GC conflict — disable Aikar flags, use ZGC#9895
Conversation
Aikar flags set G1GC + JVM_XX_OPTS set ZGC = "Multiple garbage collectors selected" crash on startup. Disable Aikar flags and use ZGC with generational mode + tuning flags instead.
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
- Set ONLINE_MODE=false in e2e container — no Mojang auth needed - Add early JVM GC conflict detection in wait loop — fails fast instead of waiting 300s for a server that will never start - Enable has_test: true + e2e_name in mc.mdx so CI runs e2e before publishing, preventing broken images from reaching production
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
MC server crashes immediately with
Multiple garbage collectors selected:USE_AIKAR_FLAGS=truesets G1GC via Aikar's JVM flagsJVM_XX_OPTSadds ZGC on topFix: Disable Aikar flags, keep ZGC with generational mode + tuning flags (AlwaysPreTouch, DisableExplicitGC, ParallelRefProcEnabled). ZGC has lower pause times than G1GC for MC servers.
Test plan