Performance & Optimization
SigmaTools is designed with performance in mind, using async operations and intelligent throttling.
Performance Features
Async Operations
- Block operations run asynchronously
- Doesn't block main server thread
- Maintains server TPS
Per-Tick Limits
- Limits blocks processed per server tick
- Prevents server overload
- Configurable per tool
Dynamic Throttling
- Monitors server TPS
- Automatically reduces performance when lagging
- Maintains server stability
Queue Management
- Global queue limits
- Per-player queue limits
- Prevents memory issues
Configuration
Per-Tick Limits
tools:
pickaxe:
per-tick-limit: 20 # Blocks per tick
Global Limits
general:
global-concurrent-cap: 50 # Max concurrent operations
max-global-queue-size: 1000 # Max queue size
max-player-queue-size: 100 # Max per player
Dynamic Throttling
performance:
dynamic-throttle:
enabled: true
tps-threshold: 18.0 # Start throttling below this TPS
reduction-factor: 0.5 # Reduce to 50% when throttling
Performance Tuning
Small Servers (< 20 players)
general:
global-concurrent-cap: 25
max-global-queue-size: 500
tools:
pickaxe:
per-tick-limit: 15
max-blocks-per-use: 50
Medium Servers (20-50 players)
general:
global-concurrent-cap: 50
max-global-queue-size: 1000
tools:
pickaxe:
per-tick-limit: 20
max-blocks-per-use: 80
Large Servers (50+ players)
general:
global-concurrent-cap: 100
max-global-queue-size: 2000
tools:
pickaxe:
per-tick-limit: 25
max-blocks-per-use: 100
Monitoring
Check Performance
/sigmatools debug queue
/sigmatools debug ops
Enable Performance Debugging
debug:
performance: true
Best Practices
- Start Conservative - Use lower limits initially
- Monitor TPS - Watch server performance
- Enable Throttling - Let plugin adjust automatically
- Adjust Gradually - Increase limits if needed
Troubleshooting
Server Lag
- Reduce
per-tick-limit - Reduce
global-concurrent-cap - Enable dynamic throttling
- Reduce
max-blocks-per-use
High Memory Usage
- Reduce
max-global-queue-size - Reduce
max-player-queue-size - Check for memory leaks
- Monitor queue sizes
Next Steps
- Performance Configuration - Performance settings
- Configuration Guide - Configuration
- Troubleshooting - Performance issues