Question: Should Xms and Xmx match or should one be higher?

Hello, I have a quick question, I've seen some people say that Xms and Xmx should remain the same values for the startup parameters but I've also seen others say that the values should be for example 4GB(Xms)/8GB(Xmx) instead of 8GB(Xms)/8GB(Xmx) the actual documentation states it should match https://docs.papermc.io/paper/aikars-flags and the script generators also match them. What's your opinion and is there ever a good idea to make one lower?
Aikar's Flags | PaperMC Docs
Aikar's flags are a set of JVM flags designed to improve the performance of your Paper server.
7 Replies
Admincraft Meta
Admincraft Meta5mo ago
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 theowlsky#0
Snow Kit
Snow Kit5mo ago
Aikar's Flags | PaperMC Docs
Aikar's flags are a set of JVM flags designed to improve the performance of your Paper server.
Snow Kit
Snow Kit5mo ago
but in reality, the actual difference isn't that big from what I've heard
Torrent
Torrent5mo ago
I've done quite a bit of testing and I've found making them match is the best bet
GSH | MrOwlSky
GSH | MrOwlSkyOP5mo ago
Yeah the docs is exactly why I was asking the question, I've seen some members mention one should be lower and other higher which counter dictates what the docs says. That's why I wanted to see what everyones views/opinions on it is.
Torrent
Torrent5mo ago
The docs only provide recommendations and examples. Flags and GC tuning should be specific to your setup (though for lots of servers, the default recommendations will work)
GSH | MrOwlSky
GSH | MrOwlSkyOP5mo ago
Makes sense

Did you find this page helpful?