Performance Configuration
Configure caching and async database behavior.
performance:
async-database: true
cache-size: 100
cache-expiration: 60
| Setting | Type | Default | Description |
|---|---|---|---|
async-database | Boolean | true | Run database operations asynchronously to prevent server lag. Always enabled, cannot be disabled. |
cache-size | Integer | 100 | Number of orders cached in memory. Higher = better performance but more memory. Guidance: under 50 players โ 100 (default); 50โ200 players โ 200โ300; 200+ players โ 500+. |
cache-expiration | Integer (seconds) | 60 | How long cached orders stay valid before refreshing from the database. Guidance: frequent updates โ 30โ60s; normal usage โ 60s (default); low activity โ 120s+. |
Troubleshootingโ
| Symptom | Check / Fix |
|---|---|
| Slow commands, GUI lag, TPS drops | Increase cache-size, switch to MySQL (see Database Configuration), check server resources/other plugins |
| High memory usage | Reduce cache-size and/or cache-expiration |