Introduction
A well-optimized Hytale server ensures a smooth gaming experience for all your players. Whether you are hosting a few friends or a large community, this guide presents the best practices to maximize your server's performance and reduce lags.
Why Optimize Your Server?
Optimizing your Hytale server is essential for providing an enjoyable gaming experience. A poorly configured server can lead to slowdowns, disconnections, and general frustration for your players.
- Significant reduction in lags and improved response times
- Ability to accommodate more players simultaneously
- Increased stability and fewer server crashes
- Better utilization of available resources
RAM Allocation
RAM is one of the most important resources for your server. Proper allocation allows the server to efficiently manage chunks, entities, and connected players.
| Number of Players | Recommended RAM |
|---|---|
| 1-5 players | 4 GB |
| 5-15 players | 8 GB |
| 15-30 players | 12 GB |
| 30+ players | 16 GB+ |
Important Tip: Do not allocate more RAM than necessary. Excess RAM can paradoxically reduce performance due to the garbage collector having to manage more memory.
View Distance
View distance determines the number of chunks loaded around each player. Reducing this value can significantly improve performance, especially with many players connected.
{
"viewDistance": 8
}
A value between 6 and 10 offers a good balance between performance and visual experience. Reduce to 4-6 for heavily populated servers.
Entity Management
Entities (mobs, items on the ground, vehicles) are often the main cause of server lags. Limiting their number and optimizing their management is crucial.
1. Limit Mobs per Chunk
Set a reasonable limit on the number of mobs that can spawn in each chunk. A value of 30-50 mobs per chunk is generally sufficient.
2. Clean Up Ground Items
Set a despawn delay for ground items (5-10 minutes). Uncollected items consume resources unnecessarily.
3. Disable Excessive Automatic Farms
Automatic mob farms can generate hundreds of entities. Monitor and limit these constructions if necessary.
World Pre-generation
Generating new chunks in real-time is very resource-intensive. Pre-generating your world before the server opens avoids lags during exploration.
/worldborder set 10000
/pregen start
This command pre-generates the world within a radius of 5000 blocks. Perform this operation when the server is empty.
Optimize Backups
Backups are essential but can impact performance if misconfigured. Here’s how to optimize them:
- Schedule backups during off-peak hours (night, early morning)
- Use incremental backups rather than full ones when possible
- Avoid backups too frequently (every 1-2 hours is usually sufficient)
Monitor Performance
Use built-in diagnostic commands to identify performance issues and adjust your settings accordingly.
| Command | Description |
|---|---|
/tps | Displays ticks per second (ideally 20 TPS) |
/memory | Displays RAM usage |
/entities | Lists the number of loaded entities |
Summary of Optimizations
| Optimization | Impact | Difficulty |
|---|---|---|
| Correct RAM Allocation | High | Easy |
| Reducing View Distance | High | Easy |
| Limiting Entities | Very High | Medium |
| World Pre-generation | Medium | Easy |
| Optimized Backups | Medium | Easy |
Need a High-Performance Server?
HytaleServ offers optimized servers with next-gen hardware. Enjoy maximum performance without worrying about configuration.