ChunkManager
Optimizes chunk loading to reduce server lag.
ChunkManager
Description:
ChunkManager helps reduce lag by optimizing chunk loading and unloading. It dynamically adjusts the chunk loading radius, caches recently unloaded chunks, and monitors server performance to ensure smooth gameplay. Additionally, it offers advanced commands for chunk optimization and garbage collection to help maintain server performance.
Commands:
| Command | Description | |----------------------------------|----------------------------------------------| | `/cm` | Open GUI. | | `/chunkstatus` | View performance stats. | | `/chunkreload` | Reload the plugin configuration. | | `/optimizechunks` | Force chunk optimization. | | `/chunkgc` | Free up memory. | | `/chunksummary` | World analysis. | | `/maintenance <on|off|auto|status>` | Toggle maintenance mode. | | `/chunklang <lang>` | Change language. | | `/chunkanalyze [world]` | Analyze chunk complexity. | | `/chunkregions` | Region stats. | | `/chunkmetrics` | Advanced metrics. |
Permissions:
| Permission | Description | |--------------------------|----------------------------------------------| | `chunkmanager.admin` | Allows access to all ChunkManager commands. |
How It Works:
- Configurable Settings: Adjusts based on server load to minimize unnecessary resource usage. - Configurable Settings: Temporarily caches recently unloaded chunks for quick reloading, reducing memory churn. - Configurable Settings: Continuously monitors server performance and adjusts settings in real-time to maintain optimal TPS and memory usage. - Configurable Settings: Unloads chunks farthest from players to optimize performance. - Configurable Settings: Triggers garbage collection to free up memory. - Configurable Settings: Provides a detailed summary of loaded chunks, entities, and tile entities for each world. - Configurable Settings: Easily adjust plugin settings via the *config.yml* file for tailored performance management.
Config.yml
```yaml
ChunkManager Configuration
Radius of chunks around the player to preload
chunk-loading-radius: 3
Cache expiration time in milliseconds
cache-expiration-time: 30000
Maximum number of chunks to load per tick
max-chunks-to-load: 5
Maximum size of the chunk cache
max-cache-size: 100
Logging level
logging-level: INFO ```