My Fabric Server's TPS and MSPT is really bad. Why is this happening and how can i fix it?

  • Thread starter Thread starter /u/driphnx
  • Start date Start date
U

/u/driphnx

Guest
Hi! I made a Minecraft Server for me and my friends, but it becomes barely playable if 2 or more people are logged in.

It did well in the first 2-3 days, but after like 5 days it started to lag A LOT. After some research I found out my TPS drops significantly and the MSPT was really high.

Initially, the server was running on PaperMC, but I recently switched to Fabric with optimization mods. I also replaced almost all datapacks with their Fabric mod versions, hoping it would help.

I've followed pretty much every guide I could find to optimize it: edited some paper configs and installed lagfixer plugins (before switching), used aikar's flags, switched to Fabric + a lot of optimization mods on it, lowered render and simulation distance, etc...

One thing I noticed was that when theres only one player connected, it runs almost flawlessly, but the moment someone joins, everything starts to lag.

CPU and Memory usage stays low when looking at the profilers and I've already tried both decreasing and increasing the allocated RAM multiple times.

Here's a Spark Profiler: https://spark.lucko.me/No01i25Mgv .
During this profiler, my friend left the server and I was left alone in it, and you can clearly see the drastic improvement in performance in the graph right when he disconnected. If needed, i can make another profiler with just myself or with multiple players.
There are only a few mods, and they barely change gameplay or add things, even vanilla players can join.

Why is this happening? What exactly should I look for, and what can I do to fix it? I'm already losing my mind trying to get it running good. Thank you in advance.

submitted by /u/driphnx
[link] [comments]

Continue reading...
 
Back
Top