Startup Issue with Minecraft - Whenever my friend joins the server, the server crashes

System Information

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

Problem Description

Issue

I’m currently stress-testing my server that I am setting up for around 30 friends, and right now just a few of us are playing to test the mods and the server itself, but it seems whenever one of my friends connects to the server, it just instantly crashes. Now watching the CPU usage, it spikes close to %100.00 so I think it might have to do with the mods but am not sure if it is due to any background processing or loading specific parts of the world that my friend is close to. Any help finding the root cause or mod would be appreciated.
P.S I tried attaching a txt document of the console log of what was going on when my friend joined but it didn’t let me.

Reproduction Steps

  • Restarted the server.
  • Disabled Physics mod
  • View the console to see what’s going on.
  • Restart the server again…

Note, this is not Hostinger support, just the forum for AMP. We can try and point you in the right direction though.
Minecraft doesn’t do any background processing really, most of the game is run on the main server thread (ie it’s mostly singlethreaded).
Make sure the server-side render distance is reasonable (the default is 10), then if all else fails you can use the Spark mod to run a profiler so you can see what mods are using up the most CPU time.