Understanding Minecraft Server Lag
Server lag, often referred to as 'TPS drop', occurs when your server cannot process game ticks within the standard 50ms window. This results in delayed block breaking, rubber-banding, and slow mob AI. Identifying the root cause is the first step toward a smoother experience.
Common Causes of Lag
- Excessive Entities: Too many mobs, items, or villagers in a single area.
- Unoptimised Plugins: Plugins that perform heavy calculations on the main thread.
- Chunk Loading: Rapid movement through unexplored terrain generates heavy CPU load.
- Resource Exhaustion: Your server may simply require more RAM or CPU power to handle your current player count and modpack size.
How to Fix Performance Issues
On AwakeNode
- Keep plugins up to date: Outdated plugins are a frequent source of memory leaks. Replace old versions in the Files tab.
- Monitor Resource Usage: Check the panel's live resource graphs to see if you are hitting your RAM limit. If your usage is consistently near 100%, consider upgrading your plan; your Xmx values will update automatically without requiring configuration files.
- Contact Support: To add your own JVM flags, set a custom startup command in your server's Startup tab.
On Other Hosts / Manually
- Optimise Configuration: Edit your
bukkit.yml,spigot.yml, andpaper.ymlfiles. Reducing view distance and entity activation ranges can significantly reduce CPU load. - Manage Startup Flags: If you have access to your startup script, ensure you are using modern Garbage Collection flags like Aikar's Flags. You will need to edit your startup command via SFTP or your host's control panel.
- Adjust Memory: If your server is crashing due to 'Out of Memory' errors, manually increase the
-Xmxparameter in your startup command to allocate more RAM to the Java process.
Proactive Maintenance
Regularly use the File Manager to clear out unnecessary world data or old logs. If you are running a modded server, ensure you are using a performance-focused server jar like Paper or Purpur, which include built-in optimisations that vanilla jars lack.