Is your Minecraft server lagging although its memory is not used up? Then missing server RAM is rarely the cause. Find out whether the problem is the server, the network or your own computer.
Free RAM is normal. The server does not have to use all the memory of the plan, and more RAM does not help if the bottleneck is something else.
What you need
- Access to your control panel at game.primehost.dk.
- Minecraft Java Edition on your computer.
1. Find out where the lag comes from
| What you see | Likely cause |
|---|---|
| Everyone sees blocks coming back and mobs standing still | The server cannot keep up (low TPS) |
| Only one player has delay | That player's network or distance to the server |
| The picture stutters but the world reacts normally | Your own computer (low FPS) |
On Paper servers you can type tps in the console. Close to 20 means the server keeps up. On newer Paper versions the command spark profiler can show what takes time.
2. Make the server's job lighter
- Lower
view-distanceandsimulation-distanceinserver.properties, for example to 6–8. See Edit server.properties. - Remove plugins and mods you do not use and test one at a time.
- Limit large farms and clusters of animals, items and redstone.
- Avoid many players exploring new terrain at once. New chunks are heavy to generate, and a plugin such as Chunky can generate them in advance.
- Schedule an automatic restart at a quiet time.
3. Give your own Minecraft more RAM
This only helps low FPS and slow loading on your computer, especially with mods. It changes nothing on the server.
- Open the official Minecraft Launcher and choose Installations.
- Edit the installation you play with and open More options.
- Find the field JVM arguments and change the number in
-Xmx2G, for example to-Xmx4Gfor 4 GB. - Save and start the game with that installation.
Do not give the game all your RAM. Stay at no more than about half of the computer's memory so the operating system has room too.
Common problems
The server uses almost all its RAM
That is a different situation. Read My server is running out of RAM.
The lag only happens when many are online
Lower the distances and check heavy plugins. If that does not help, see the size guide.
Read also
- My server is running out of RAM – signs and fixes
- Edit server.properties (settings for your Minecraft server)
- Schedule an automatic restart of your server
- How to use the size guide and choose the right amount of RAM
Need help?
If you get stuck, open a ticket and we will help you from there. Please tell us your version and server type and when the lag happens.