When a server runs short of RAM, every player feels it. Here are the typical signs and what you can do about them.
How to recognise it
- Lag that gets worse over time. The server is fine right after a restart but gets sluggish after a few hours.
- The server shuts down or restarts by itself, often when many are online or after a big change.
- Memory errors in the console, such as a message about out of memory or that the server was stopped.
- Slow loading of the world or of many mods.
Remember: Lag can also come from something else, such as a player's network or a heavy mod. If it only affects one player, start with the checklist for connection problems.
What you can do
- Restart the server. It frees memory and is a quick fix while you look into the rest.
- Schedule an automatic restart. A restart every day at a quiet time keeps the server fresh. See how to schedule it in the control panel.
- Use fewer or lighter mods and plugins. Remove what you do not use and test one addition at a time.
- Limit the world. Large worlds, many entities or big builds use more RAM.
- Give the server more RAM. It is the safest fix when you have more players or more mods. See How to add extra RAM or upgrade.
How much RAM do I need?
It depends on the game, the number of players and mods. Use the size guide on the game's page, or read How to choose the right size. The guide gives a guideline and tells you when you have plenty of room.
Tip: Take a backup before you upgrade or remove mods so you can easily go back.
Need help?
If you are stuck, open a ticket and we will help. Please include what the console shows and what you have already tried.