Tried to optimize server, still getting 11 TPS with 4/5 people.

Hey everyone! I've been working on a minecraft server again, and in testing phase, the server's running at 11-15 TPS with 5 people on it. I know I have a ton of mods, but I figured the server would at least run a little better. I turned down view distance, turned down sim distance, installed servercore What else can I do, to increase TPS and make it more playable for my players?
16 Replies
Matthias
MatthiasOP2mo ago
Okay the bot is not liking my sparkprofiler URLs
Eismeister
Eismeister2mo ago
what sort of hardware do you have?
Cosmos
Cosmos2mo ago
Try allocating more CPU threads to the server. I see that you only have 1 thread allocated to the server
Matthias
MatthiasOP2mo ago
Ill get that for you in a sec! I thought Java itself was limited to 1 thread, no? Oh I’m confusing cores with threads nvm -XX:ParallelGCThreads= right?
Cosmos
Cosmos2mo ago
Yes but modern server software can utilise additional threads/vcores
Matthias
MatthiasOP2mo ago
Gotya This was with a simple google search, if it’s something else / additional please let me know :)
Cosmos
Cosmos2mo ago
Yes Usually modern CPUs have 2 threads per core Depends on your cpu model You can also increase the RAM allocation, if more CPU threads don't resolve the problem.
Matthias
MatthiasOP2mo ago
Well, I wasn’t being hit by RAM restriction on the server, I think it maxed out at 12GB on 13tps Out of 20GB allocated
Cosmos
Cosmos2mo ago
Then it means that the RAM isn't the problem When a server has low TPS/crashes there are a lot of causes.
Laupolio
Laupolio2mo ago
Intel(R) Core(TM) Ultra 7 155H Its kind weird that raids are taking up 20% of the load
Matthias
MatthiasOP2mo ago
Just got back and set 2 things
USE_MEOWICE_FLAGS=true
JVM_OPTS=-XX:+UseG1GC -XX:ParallelGCThreads=10
USE_MEOWICE_FLAGS=true
JVM_OPTS=-XX:+UseG1GC -XX:ParallelGCThreads=10
TPS is still slightly under 20 with even just me on the server Keep in mind i'm using itzg's docker image to run this
Matthias
MatthiasOP2mo ago
Nope, on a NUC Thanks for taking the time to help btw, appreciate it everyone :luv: Lemme install those, and restart. I'll report back in 3 mins!
Laupolio
Laupolio2mo ago
Someone else can probably tell you whether or not minecraft will hurt on a CPU with e cores I'd assume so but I've never actually tried https://modrinth.com/mod/vmp-fabric https://modrinth.com/mod/servercore Those two might require some configuration but could help https://modrinth.com/mod/immersive-optimization
Cosmos
Cosmos2mo ago
As much as I'm aware of, yes Ecores are generally slower than normal cores
Matthias
MatthiasOP2mo ago
It's a little better now, no TPS drops when 3 players were on, and seems to be running fine. Thanks so much for your help and tips everyone, I appreciate it! ./close does not work, oops

Did you find this page helpful?