Minecraft - server has extereme lag. Game Panel 4. 14Gb Ram Allocated

System Information

Field Value
Operating System Linux - Debian GNU/Linux 12 on x86_64
Product AMP ‘Phobos’ v2.6.0.4 (Mainline)
Virtualization Docker
Application Minecraft
Module MinecraftModule
Running in Container Yes
Current State Ready

Task

I am running an MC server with around 10 players max at any given time

Problem Description

Issue

The server is not able to keep up message appears a lot. I am not sure what is happening.

Reproduction Steps

  • Start server
  • Use Fabric 1.21
  • Install mods: Better stats, Fabric Api, Cloth Config, Collective, elytratrims fabric, Fabric language kotlin, simple voice chat, instant group fabric, just mod head, self made lifesteal mod, simply optimized(modpack), TCD commons, trade cycling,
  • Have 5+ people online
  • Insane lag
  • Server restarted, but still lag

More ram won’t fix all your problems, with Minecraft it’s often CPU overutilization that causes lag/drops in TPS.
You can use the Spark mod server-side to figure out what’s using the most CPU.
Most often it’s either chunkloading or too many entities. Make sure that the server-side render distance isn’t too high (the default is 10)

But it says the CPU only is being used at 30% during the laggy times

Minecraft is mostly singlethreaded

Is there a mod that will help with the lightening of chunk/entity loading or make it
multi threaded?

Not really no, any mod that offers something like that causes crashes with mods that add anything content-related.
So your best bet is to use Spark to narrow down where the hot spots are.

I will try this, and be back

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.