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
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
first I suggest https://docs.papermc.io/paper/aikars-flags
Aikar's Flags | PaperMC Documentation
Recommended JVM Startup Flags
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?
🤦♂️
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
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?
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
dont use all the ram
cause the panel still needs some
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
try as little ram as you can first and then go up accordingly
start at 6gb
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
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?
Only if needed
Also do either of you know what the recommended RAM is for 50-60 players playing at the same time?
Use spark to find out
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
https://spark.lucko.me/
Admincraft Canned Responses
As needed
But memory usage isn't that dependant on player count
It's more dependant on world/plugin count
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
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
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?
What cpu?
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
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