Game Server: CPU or RAM? Identify the Bottleneck from Measurements
Compare CPU, memory, logs, and gameplay during the same period under load to identify clues to a possible server bottleneck.
You cannot tell whether a game server is short on CPU or RAM from a single usage figure. Compare CPU, memory, logs, and gameplay during the same period under load. Recurring memory errors point to a memory problem; delayed server calculations despite sufficient RAM suggest CPU or engine load. These are clues, not guarantees: game engines, server software, and measurement methods differ.
First, look at the same time period
Note when the delay occurs and whether several players are affected at the same time. If it affects only one person or mainly appears as high ping and disconnects, the client or network path may also be involved. When everyone is delayed, collect CPU and memory readings and console messages from that exact time window.
If your server or panel provides graphs, compare a quiet period with a similar gameplay situation in which the problem recurs. Also note the player count and activity, such as exploration, large fights, or loading extensive game areas. Displays may represent a single process, a container, or the entire system. Compare only values with the same meaning and unit; there is no universal percentage threshold for every game server.
Signs of a CPU limit
A CPU bottleneck becomes more likely when delays coincide with high CPU load or when the game engine reports long calculation times while memory is still below its limit. A low overall CPU reading does not rule out a bottleneck: on Paper, much of the work comes from a single tick loop, so one thread can be busy even when the reading across all cores looks moderate. This characteristic applies to Paper and cannot be generalized to every game engine. See PaperMC: Low CPU usage.
On Paper from version 1.21, you can use the integrated spark. During the problem, start this command in the server console: spark profiler start --timeout 300. In the console, enter the command without a leading slash; in in-game chat, it needs a slash and the appropriate permissions. Paper recommends profiling while the issue is actually occurring. The report helps identify which methods take time; spark documents the command and measured values in its Command Usage guide, and Paper describes its use in the Profiling Guide.
A spark report may generate a link. Share it only with people you want to see the server data it contains.
Signs of memory pressure
A memory bottleneck becomes more likely if the process or container display repeatedly reaches its assigned limit during the problem, the server shuts down due to lack of memory, or the log reports an OutOfMemoryError. For Java, read the full suffix: Java heap space indicates a problem allocating heap memory; Metaspace and native memory messages describe other areas. Oracle's Java troubleshooting guide explains that even Java heap space can have several causes—for example, a heap limit that is too small or objects held for a long time.
GC overhead limit exceeded is also a clear sign of heavy garbage-collection activity: the JVM spends a great deal of time cleaning up while recovering little memory. Read the exact message and check heap and process readings before increasing -Xmx.
High Java RAM usage alone does not prove a bottleneck. The Java application can use more process RAM than the heap limit set by -Xmx. PaperMC also notes that occupied memory often does not return to the operating system after garbage collection. On Paper with spark, you can display additional JVM memory values using spark health show --memory. Compare the heap with the process or container reading instead of looking at only one of them.
If your JVM report lists separate heap values for used, committed, and max, read each one individually: used shows the memory currently in use, committed the memory committed to the JVM, and max the defined upper limit. They do not automatically correspond to process or container RAM; Oracle describes these terms in the Java SE 25 MemoryUsage reference.
When both readings are high or neither fits
CPU and memory pressure can happen at the same time. Frequent garbage collection, for example, can coincide with delayed ticks; a larger heap does not automatically resolve CPU load from plugins, mods, or the game world. So do not change the heap, software, and game rules at the same time. Record the starting values, change one variable, and compare the same gameplay again. If you modify extensions or world files, make a backup first.
If CPU and memory look normal while players still report delays, investigate the network, storage, or client as separate possible causes. The Minecraft lag guide covers other server checks; the article on planning Minecraft server RAM explains how to interpret memory readings for a specific world.
Sources
- PaperMC: Basic troubleshooting – RAM readings, heap, and the single-thread note for Paper.
- PaperMC: Profiling – spark availability and profiling during an active problem.
- spark: Command Usage – profiling and JVM health commands.
- Oracle: Troubleshooting Guide (Java SE 25) – interpreting Java memory errors.
- Oracle:
MemoryUsage(Java SE 25) – meaning of the JVM metricsused,committed, andmax.
Did this guide help? We are happy to help personally.