Recommended RAM and CPU Amount as well as Startup Command for Upcoming Influx of Users

Hello, I have a small survival server which has around 10 daily players. I will be buying a promotion slot on a minecraft listing website and may get 1-2 dozen players max if it gets noticed. I currently have 18 GB RAM and 800% CPU, and my startup command for the hosting panel i use is attached below. I have around 110 plug-ins for various different things. It runs pretty smoothly for the 10 current players I have now, I’m wondering what would be the recommended specs and startup command that I should use if there were let’s say a max of 50 players on at once with 120ish plug-ins? Current startup command: java -Xms128M -Xmx15000M -Dterminal.jline=false -Dterminal.ansi=true --add-modules=jdk.incubator.vector -jar server.jar
23 Replies
Admincraft Meta
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close !close !solved !answered
Requested by kaludi#0
Zaid
Zaid2y ago
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar --nogui
java -Xms10G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar paper.jar --nogui
Kaludi
KaludiOP2y ago
Thank you! In my case since I have 18 GB RAM Would I even out the xms and xmx to around 7GB and 7GB and leave some room for the pterodactyl panel?
MrMcyeet
MrMcyeet2y ago
🤦‍♂️ No set both xmx and xms to 8g (or 10g) But dont use 18 Overallocating memory will lead to performance issues @Kaludi xmx is the maximum amount of memory the jvm will use amd xms is the amount of memory itll start with btw, so you dont have to "even them out" lol
Kaludi
KaludiOP2y ago
Ahh got it, sorry I haven't touched startup commands even though I've had the server for years. This is what my hosting provider is recommending for the Flags on a Ptrerodacyl hosting panel, they say to not change the XMS, is that okay?
No description
MrMcyeet
MrMcyeet2y ago
xms should be the same as xmx if they dont prevent you from entering that, then do it if they do, then they're dumb, since thats literally the whole point of aikars flags
snowznz.bak
snowznz.bak2y ago
dont use all the ram cause the panel still needs some
Kaludi
KaludiOP2y ago
Makes sense, and I am able to change it. @snowznz.bak @Livor Mortis in my case of 18GB RAM on the panel, -Xms12G -Xmx12G should be good right? Or should I stick to -Xms10G -Xmx10G
snowznz.bak
snowznz.bak2y ago
try as little ram as you can first and then go up accordingly start at 6gb
MrMcyeet
MrMcyeet2y ago
Yeah, start at 6 or 8 No shot you need 12 or 18g yet tbh Just make sure you set xmx and xms to the same
Kaludi
KaludiOP2y ago
Okey, once there's a lot more players on at the same time then I can start increasing the to 10 GB and over as needed?
snowznz.bak
snowznz.bak2y ago
Only if needed
Kaludi
KaludiOP2y ago
Also do either of you know what the recommended RAM is for 50-60 players playing at the same time?
snowznz.bak
snowznz.bak2y ago
Use spark to find out !spark
Carl-bot
Carl-bot2y ago
Spark Profiler
Spark can be used to see why your server or client is lagging. https://spark.lucko.me/
From An unknown user
Admincraft Canned Responses
MrMcyeet
MrMcyeet2y ago
As needed But memory usage isn't that dependant on player count It's more dependant on world/plugin count
Kaludi
KaludiOP2y ago
True, in my case I have around 120 plugins and my server is 150GB total, any recs of specs I should get? Just want the players to have a smooth experience once they join from the promotion slots
MrMcyeet
MrMcyeet2y ago
Server specs? Just get whatever server has the most powerful CPU you can afford. Minecraft needs the fastest single core speed you can give it For memory just start at like 8g If you need more then give it more If not, just profit
Kaludi
KaludiOP2y ago
This is what I have rn, I hadn't touched the startup before today so it's always been default at 128M for both XMS and XMX. I should be good with what I have currently even when there are a lot more players right?
No description
Querlenker
Querlenker2y ago
What cpu?
Kaludi
KaludiOP2y ago
Currently on these specs: CPU: Ryzen 5600X RAM: DDR4 @ 2666 Mhz DISK: SSD I can upgrade to these specs if needed: CPU: Ryzen 7 5800X RAM: DDR4 @ 3200Mhz DISK: NVMe
Zaid
Zaid2y ago
2666 MHz ew nvme would be a lot faster and getting a better ddr4 kit would be good but make sure ur motherboard supports 3200MHz at least

Did you find this page helpful?