-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
The flag -XX:+UseG1GC can not be combined with -XX:ParallelGCThreads=0 #466
Comments
Please provide information about how the container is setup, specifically the environment variables. |
I'm getting this as well. My container is running in an LXC in Proxmox, allocated 4 processors and 5GB RAM. (Edit: This all worked perfectly in standard Ubuntu on bare metal. Doesn't work in LXC in Proxmox.) Environment variables:
Edit: I just set this up and have been researching this issue. Funny that I found this post from 6hrs ago. |
I can't find any reference to the But you can always use
This should remove |
It is inside an LXC in Proxmox with 11GB Ram and 4 processors. It has being running good for two months until yesterday that I got this error. |
@wlp7s0 I have tried launching it like this withouth exit. docker run -d -p 25565:25565 --name minecraft_server -v /root/minecraftServer:/data --restart=always -e TYPE=SPIGOT -e VERSION=1.15.2 -e EULA=TRUE -e ONLINE_MODE=FALSE -e DIFFICULTY=normal -e MAX_PLAYERS=50 -e OVERRIDE_SERVER_PROPERTIES=true -e ALLOW_NETHER=true -e MEMORY=8G -e JVM_XX_OPTS="-XX:+UseG1GC" itzg/minecraft-server |
With @itzg has anything changed recently regarding JVM options? |
Nothing in that area has changed and it’s especially strange since like @wlp7s0 mentioned, that other argument value doesn’t exist anywhere in the image files. |
Can you tell us what did you do when you've got the error? This error can only be reproduced during docker image restart. Why did you need to restart it?
And you still have the same error? Try to stop the docker container, remove all docker's images, update git repository and build it again. |
@lpulley or @WaterKnight1998, if you still have one in this state, can you add |
That gives me:
and of course still
(with I did this after pulling EDIT: Full variables:
|
Figured I'd try setting
I should add that this is with a volume that has existing data in it. I'll try this with an empty volume and see what I get. |
@lpulley thanks for the update...I'm still really confused where it's even getting the ParallelThreads argument since you can see it's not being passed along with the others. Can you double check you have
and the logs |
@itzg Just tried that Compose file exactly, after I suspect it has something to do with the JVM running inside a Docker container inside LXC. Per my previous error log when I specified
It seems that something is telling the JVM there are 0 processors available? Perhaps that's why |
Ah yes, I think you’re right that it’s something about LXC influencing this behavior. That makes me wonder if there’s a JVM option to disable that auto setting... |
Aha! |
Excellent find! What you now remove |
Yup, was just about to mention that. Works fine without that. Some questions about that: In an LXC container with 6 allocated cores, running multiple containers of |
Thanks for confirming. Yes, you may want to scale back that value if running multiple minecraft containers. I believe with Java 9 and newer it becomes more container-aware to do a little better at guessing CPU and memory constraints within the container. There's image tags |
Seems that EDIT: Maybe |
That’s very good to hear. Either should be totally fine. The only downside I know is that forge and/or some mods don’t work with versions other than Java 8. |
Error occurred during initialization of VM |
@itzg Can you help us? Do have any recommendations? |
@ekifox can you add |
Next, I tried to specify 1 and 3 cores, but still got such an error. Without --cpuset-cpus it works. |
Strange. It seems like Spigot/Tuinity are triggering some special logic that detects the CPU configuration and auto-adjusts |
To be clear from last time: I ended up running with |
THX for this thread. I was searching for this error since Days. adopt13 worked for me too. Have not tested adopt11. Host was Proxmox with a Container for Docker. I was using PaperMC and maybe 2 or 3 weeks ago I got this error. Everything was fine before. On my other virtualisation platform everything works fine with the LATEST image. So there must be something with KVM or something like that. |
Yeah, |
Adding this to the proxmox lxc configuration worked in a similar issue:
|
This issue has been automatically closed because there has been no response after requesting feedback. Please feel free to re-open this issue if the scenario still exists and provide a comment with more information. |
The image has stopped working with next error:
The text was updated successfully, but these errors were encountered: