Performance Tuning
Optimize LilChunks to achieve the best balance between generation speed and server performance.Performance Overview
LilChunks is designed to be highly performant, but proper configuration is essential for optimal results:CPU Usage
Multi-threaded generation with configurable thread count
Memory Management
Smart memory usage with optional limits
Server Impact
Minimal TPS impact with async processing
Performance Metrics
Key Performance Indicators
Monitor these metrics during chunk generation:TPS (Ticks Per Second)
TPS (Ticks Per Second)
Target: 20 TPS
Acceptable: 18+ TPS
Critical: Below 15 TPS
Acceptable: 18+ TPS
Critical: Below 15 TPS
If TPS drops below 15, reduce generation speed immediately.
Memory Usage
Memory Usage
Monitor: Heap memory usage
Warning: Above 80% usage
Critical: Above 90% usage
Warning: Above 80% usage
Critical: Above 90% usage
Generation Speed
Generation Speed
Measurement: Chunks per second
Typical Range: 5-50 chunks/second
Depends On: Server specs and configuration
Typical Range: 5-50 chunks/second
Depends On: Server specs and configuration
Configuration Optimization
Performance Profiles
Choose a profile based on your server specifications:Specs: 8+ cores, 16+ GB RAM, NVMe SSDExpected Performance: 30-50 chunks/second
Fine-Tuning Parameters
chunks-per-tick
chunks-per-tick
Impact: Direct effect on generation speed and server loadTuning Guide:
- Start with default (4)
- Monitor TPS during generation
- Increase if TPS stays above 18
- Decrease if TPS drops below 16
thread-count
thread-count
Impact: CPU utilization and parallel processingRecommendations:
0
: Auto-detect (CPU cores - 1)1
: Single-threaded (lowest impact)2-4
: Good for most servers6+
: High-end servers only
max-memory-usage
max-memory-usage
Impact: Memory consumption and garbage collectionGuidelines:
0
: No limit (high-end servers)1024-2048
: Most servers512-1024
: Budget servers256-512
: Shared hosting
Real-Time Optimization
Dynamic Adjustment
Monitor and adjust settings during generation:1
Start Generation
Begin with conservative settings:
2
Monitor Performance
Check TPS and memory every 30 seconds:
3
Adjust if Needed
If performance is good, increase speed:
4
Continue Monitoring
Keep watching performance and adjust as needed.
Performance Indicators
Server-Specific Optimizations
Paper Server
Paper provides additional optimizations:Spigot Server
Spigot configuration tweaks:JVM Optimization
Optimize Java Virtual Machine settings:Monitoring Tools
Built-in Monitoring
Use LilChunks’ built-in monitoring:External Monitoring
Troubleshooting Performance Issues
Low TPS During Generation
Low TPS During Generation
Symptoms: TPS drops below 15 during chunk generationSolutions:
- Reduce
chunks-per-tick
to 1-2 - Disable parallel processing
- Set memory limits
- Reduce thread count
- Disable structure/feature generation
High Memory Usage
High Memory Usage
Symptoms: Memory usage above 80%, frequent GC pausesSolutions:
- Set strict memory limits
- Reduce generation speed
- Increase heap size
- Optimize JVM flags
Slow Generation Speed
Slow Generation Speed
Symptoms: Very slow chunk generation (< 5 chunks/second)Solutions:
- Check disk I/O performance
- Verify async is enabled
- Increase thread count
- Check for plugin conflicts
Server Freezing
Server Freezing
Symptoms: Server becomes unresponsive during generationSolutions:
- Stop generation immediately
- Use minimal settings
- Check for deadlocks
- Review server logs
Performance Best Practices
Start Conservative
Begin with lower settings and gradually increase based on performance monitoring.
Monitor Continuously
Keep an eye on TPS, memory, and generation speed throughout the process.
Off-Peak Generation
Run large pregeneration tasks during low-activity periods.
Backup Before Large Tasks
Always backup your world before running extensive pregeneration.
Test Configuration
Test new configurations on a development server first.
Document Settings
Keep notes on what settings work best for your server setup.
Performance Benchmarks
Typical Performance Ranges
Based on server specifications:Server Type | CPU Cores | RAM | Storage | Expected Speed |
---|---|---|---|---|
High-End Dedicated | 8+ | 16+ GB | NVMe SSD | 30-50 chunks/s |
Mid-Range VPS | 4-6 | 8-12 GB | SSD | 15-25 chunks/s |
Budget VPS | 2-4 | 4-6 GB | SSD/HDD | 5-12 chunks/s |
Shared Hosting | 1-2 | 2-4 GB | HDD | 2-8 chunks/s |