03Game server panel
Game server lags or stutters – finding the cause
Server lag, high CPU or RAM usage? See in the Nexthosting panel what causes it, what you can fix yourself and when more power helps.
In short
If your game server lags, first look at the metrics (Messwerte) and the console (Konsole): if CPU or memory sit at the limit all the time, the server is overloaded. Often it helps to cut down mods, plugins or world settings. If that is not enough, Upgrade and boost gives you more power. If the cause stays unclear, report a problem.
First: where does it lag?
Section titled “First: where does it lag?”Not every lag comes from the server. Two questions help:
- Does everyone lag at the same time? Then it is usually the server. If only one person lags, it is often their connection, their Wi-Fi or their computer.
- Does the game stutter, or does the server respond with a delay? Low frames per second on a player’s side are down to their computer. High ping, rubber-banding and items that appear late point to the server or the network.
How to see resource usage in the panel
Section titled “How to see resource usage in the panel”- Open your server in the panel. The header shows CPU, memory and disk space, each with the limit of your plan.
- Open Metrics (Messwerte). Pick a period of up to 30 days and check whether the lines only spike at certain times (for example in the evening with many players) or stay high all the time. More under Metrics and notifications.
- Open the console (Konsole) and filter for errors (Fehler) and warnings (Warnungen). Messages about long ticks, timeouts or lack of memory often match the time of the lag. See Console and controls.
- Note the time and the number of players. That helps you and us in the search.
CPU at the limit
Section titled “CPU at the limit”For the CPU, what counts most is how much the server has to calculate per second. Typical causes, by type of game:
| Type of game | Common causes |
|---|---|
| Minecraft | view distance (view-distance) too large, very many animals or monsters and large redstone builds, too many plugins |
| Garry’s Mod | addons that need a lot of processing, many props and entities, faulty scripts |
| Rust, ARK, Conan and other survival games | very many structures, animals or objects on the map, too many mods |
| FiveM | slow or faulty resources (scripts), many vehicles and objects |
| Arma, DayZ | mods with high load, many AI units or objects |
What you can do yourself:
- Remove new mods and plugins one at a time and watch whether it gets better.
- Lower the view distance and the number of entities or AI units.
- For servers that run for a long time, schedule a regular restart, preferably at a quiet time.
- Bring the server software and mods up to date.
Memory at the limit
Section titled “Memory at the limit”If memory stays at the limit for a long time, the server becomes sluggish or crashes. The panel then shows a red bar at the top of the server pages with the likely cause. More under Console and controls.
- With Java games like Minecraft, the game uses more memory over time and does not always give it back right away. A regular restart helps.
- Many mods, large worlds and many players need more memory. Check whether your plan fits the size of your group.
- You set startup variables under Settings and startup. Only change them if you know what you are doing. You cannot assign more memory than your plan has.
Book more power
Section titled “Book more power”If cleaning up is not enough, your plan no longer fits your group:
- Permanently more memory, disk space or CPU: Upgrade your server in the customer account or in the upgrade tiles of the server hub.
- Temporarily for an event or the weekend: Boost.
- Much more of everything: a larger plan, see Change plan and upgrades.
If you are stuck
Section titled “If you are stuck”Open a ticket directly in the panel via Report a problem. Give the game, the time of the lag, the approximate number of players, the mods you changed last and the messages from the console. The more precise, the faster we find the cause.
Frequently asked questions
Section titled “Frequently asked questions”Why does my server only lag in the evening?
Section titled “Why does my server only lag in the evening?”In the evening usually the most players are online. More players mean more processing load and more memory. The metrics show this as a peak at the same time.
Does a restart help?
Section titled “Does a restart help?”Often yes, especially with Java games and servers that run for a long time. It is best to plan a daily restart at a quiet time. See Schedules and restarts.
Is the server overloaded if the CPU briefly jumps to 100 percent?
Section titled “Is the server overloaded if the CPU briefly jumps to 100 percent?”Short peaks, for example when saving or starting, are normal. It becomes a problem when the CPU stays high for a long time and players notice lag.