Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow garbage collection selection, additional startup args #5

Open
weableandbob opened this issue Mar 26, 2021 · 0 comments · May be fixed by #11
Open

Allow garbage collection selection, additional startup args #5

weableandbob opened this issue Mar 26, 2021 · 0 comments · May be fixed by #11

Comments

@weableandbob
Copy link

I'm currently trying to get a Minecraft server copied over from my Windows desktop to my Unraid NAS that's running a FeedTheBeast modpack. However, the current Docker config does not allow me to set the necessary startup args that are necessary (or at least recommended).

Specifically, the command line I'm currently using is:

java.exe -server -XX:+UseG1GC -XX:+UnlockExperimentalVMOptions -Xmx6144M -Xms4096M -jar forge-1.12.2-14.23.5.2846-universal.jar nogui

-server, -Xmx, -Xms, -jar, and nogui are all already either configurable or not necessary. However, UseG1GC and UnlockExperimentalVMOptions are not. Additionally, I believe UseG1GC conflicts with the -XX:ParallelGCThreads that is currently getting passed in.

Would it be possible to add the option to set these properly? Or alternatively, adding the option for a CUSTOM_STARTUP_COMMAND variable or similar that, if set, overrides the current startup command?

gabriel-andreescu added a commit to gabriel-andreescu/arch-minecraftserver that referenced this issue Mar 7, 2022
Useful for modern modpacks which have their own script.sh
Can also be used to declare custom java args

resolves binhex#5
@gabriel-andreescu gabriel-andreescu linked a pull request Mar 7, 2022 that will close this issue
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 a pull request may close this issue.

1 participant