docker-minecraft-server: Could not create the Java Virtual Machine
Hi, I’m having a memory asignation issue when running the server:
Just to be clear, server has more than 60GB of free RAM
[init] Setting initial memory to 16G and max to 16G
[init] Starting the Minecraft server...
Invalid initial heap size: -Xms16G
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
2020-04-25T21:43:28.855Z INFO mc-server-runner Done
Run command:
docker run -d -v /mnt/data_drive_1/srv/minecraft/spigot_latest/:/data --restart=always -e VERSION=1.15.2 -e MEMORY=16G -e DIFFICULTY=hard -e ONLINE_MODE=FALSE -e TYPE=SPIGOT -p 25566:25565 -e EULA=TRUE --name spigot_latest itzg/minecraft-server
Output of docker run --entrypoint java itzg/minecraft-server -version :
openjdk version "1.8.0_212"
OpenJDK Runtime Environment (IcedTea 3.12.0) (Alpine 8.212.04-r0)
OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)
It worked before, but now I’m upgrading the server with a fresh install and having this issue.
Thnx in advance!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (6 by maintainers)
@itzg Oh, sorry about that! I’m quite new to GitHub etc & I’m still figuring things out — I’ll create new ones going forward.
And ah, that would make sense… I don’t know how I was unaware of that! I’ll try again with the 64-bit OS. Thanks so much!
(edit in case someone stumbles upon this: installing the beta 64-bit version of Raspberry Pi OS worked beautifully)