I’ve set up a droplet with 4GB of ram, but when I try to start a minecraft server with 3GB, it says there’s not enough memory. I have no other processes running. Any ideas? Thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
java -Xms512M -Xmx3G -jar minecraft_server.jar nogui <br> <br>This should work… <br>The -Xms is the initial memory and the Xmx is the maximum memory. the server will allocate the 512 Mb of memory when you start it and then whenever it needs more it will automatically allocate it up to a maximum of 3Gb.
No, I would assume that the server or java doesn’t like reserving more than X amount of ram for a process though.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.