A step-by-step diagnosis for a self-hosted Minecraft server that won't stay running. Five most common causes, in the order you should rule them out.
Every Minecraft server crash leaves a trail. There are two places to look:
logs/latest.log, the live console log, has the last few minutes of activitycrash-reports/, written when the server crashes hard, has a structured dump including the stack trace and the mod listThe most useful line is usually near the bottom of latest.log or the top of the crash report, marked something like Caused by: or java.lang.OutOfMemoryError.
In MC Server Manager: the crash auto-fixer reads these reports automatically and tells you which mod or setting caused the crash, with a one-click fix where possible. If you'd rather diagnose by hand, the rest of this guide is the manual version.
The classic, especially on modded servers. Symptoms:
java.lang.OutOfMemoryError: Java heap spaceFix: Allocate more RAM. Vanilla and Paper servers are happy with 2-4 GB. Forge and Fabric with mods often need 4-6 GB. Heavy modpacks (RLCraft, ATM-style packs) want 6-8 GB or more.
In MC Server Manager, just bump the RAM slider on the server's settings page and restart. Manually, edit your start script and change -Xmx4G to a higher number.
Don't allocate more than half your system RAM. The OS, your browser and Minecraft itself need memory too. A 16 GB PC giving 12 GB to a server will swap to disk and lag terribly.
The server starts, then crashes immediately or partway through loading. Symptoms:
Fix:
at packagename.ClassName line before the crash, the package name usually tells you which mod.jar to .jar.disabled or remove it from the mods folder)If you have many mods, MC Server Manager's crash auto-fixer can usually narrow this down for you in a couple of seconds rather than a manual binary search.
If the crash log says UnsupportedClassVersionError, your Java doesn't match your Minecraft. This is a separate, common-enough issue that we have a dedicated guide for it:
How to fix Unsupported Class Version errors →
Subtler than #3. The server starts, but crashes when a player joins or when a specific block loads. Symptoms:
NoSuchMethodError, NoClassDefFoundError or AbstractMethodErrorFix: Every mod must match your Minecraft version exactly. Check each mod's CurseForge page, the version number on the file should match your server's Minecraft version. If a mod hasn't updated yet, you have to wait for the author or pick an alternative.
MC Server Manager warns you when you try to install a mod that doesn't match your server's version, which catches this before the crash.
The rarest but scariest. The server crashes immediately on world load, every time. Symptoms:
region, chunk, NBT or EOFExceptionFix:
world folder somewhere safe at least once a day.