Configuration with Minecraft - Minecraft Server keeps crashing

System Information

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

Problem Description

Issue

Despite the CPU and RAM Ressources being sufficient enough to manage a minecraft server with 2-4 Players, we’re experiencing frequent crashes of our Minecraft server. The configuration is not very performance heavy and we dont use any mods, so it is unclear what is causing the crashes. The issue only occurs when 2+ players are online. There seems to be no particular scenario in game, that is causing the crash due to lagging.

Reproduction Steps

  • Join on Server with 2 Players
  • Have the two players playing in different chunks
  • Game Crashes with the Message "Server cant keep up, running N ms or M ticks behind.

That message is caused by there not being enough CPU for whatever you’re doing.
Keep in mind that MC is mostly-singlethreaded, so it relies heavily on singlethreaded CPU performance.
You can use a mod/plugin on the server like Spark or Observable to narrow down the cause of the issue.