How to Set Up Automatic Server Restarts

Learn how to schedule automatic restarts to keep your Minecraft server running smoothly.

Regular restarts help clear memory leaks, refresh loaded chunks, and keep your server running at peak performance. Most servers benefit from restarting every 6-12 hours.

Setting Up Scheduled Restarts

Open Schedules

Access the XGamingServer panel and go to Schedules in the sidebar.

Create a new schedule

Click Create Schedule. Set a name like "Auto Restart" and set your cron timing (e.g., every 6 hours: 0 */6 * * *).

Add a warning message

Add a task: Send Command with value:

say Server restarting in 60 seconds. Please save your progress!

Add a delay

Add a 60-second delay to give players time to prepare.

Add the restart action

Add a task: Send Power ActionRestart.

💡 Tip: For busy servers, consider restarting during low-traffic hours (e.g., 4 AM and 4 PM) rather than every X hours.

Server TypeRestart Frequency
Vanilla / Paper (small)Every 12-24 hours
Paper + pluginsEvery 6-12 hours
Modded (Forge/Fabric)Every 6-8 hours
Heavy modpacksEvery 4-6 hours

📝 Note: If your server maintains a stable 20 TPS without restarts, you don't necessarily need scheduled restarts. They're most useful for modded servers and servers with many plugins.

See also: Performance Guide | How Much RAM

If you need help, join our Discord.

How is this guide?

40% Off — Limited TimeGet your Minecraft server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page