Minecraft - CPU Usage causing server crashes

System Information

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

Task

Not have crashes

Problem Description

Issue

No specific cause, 16gb ram server crashes and CPU usage constantly peaks at 140-170%

Reproduction Steps

  • Start Server
  • Play server
  • Server Crashes

What RAM have you assigned Java?

I’m sorry you’re gonna have to dumb it down for me, what do you mean?

Manage the instance, search “memory” in the search bar, what is the memory setting at?

I can see there should be a setting called “Use system RAM as total” but when I press it nothing happens, looked in Configuration → Minecraft and there is no setting

Not the setting you’re looking for, you want to see how much memory is allocated to the server under Java and Memory

There is 32 gb with 16 allocated to the server

You’ll want to read the crash log to diagnose the crash, and use a plugin/mod like Spark to narrow down where the CPU issues are coming from.
(note, Minecraft is mostly singlethreaded)

java.lang.Error: ServerHangWatchdog detected that a single server tick took 502962.19 seconds (should be max 0.05)

Not really sure what I should be looking for

and use a plugin/mod like Spark to narrow down where the CPU issues are coming from

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