Limit Mob Spawns

Reduce lag from mobs piling up.

On this page

Mobs piling up on the server are a common cause of lag and falling TPS. Limiting mob spawns helps keep performance stable.

Settings in server.properties#

KeyPurposeSuggested
spawn-limits.monsterMax monsters per player70
spawn-limits.animalsMax animals per player10
spawn-limits.water-animalsMax water animals5
spawn-limits.ambientMax ambient mobs (bats)15
spawn-limits.water-ambientMax water ambient mobs5

How to change them:

  1. Open Files → server.properties.
  2. Adjust the values above.
  3. Save and Restart the server.

Example:

properties
spawn-limits.monster=70
spawn-limits.animals=10
spawn-limits.water-animals=5
spawn-limits.ambient=15```txt


## Paper/Purpur — Reduce Tick Rates

If using Paper/Purpur, open `config/paper-world-defaults.yml` and enable **mob-spawner-tick-rate** or set `tick-rates` for specific mobs so they are processed less often.

## Clean Up Excess Mobs

To clear mobs that already piled up, run in the **Console**:

/kill @e[type=!player]

```callout-tip Also cap the **entity count** with a plugin like *ClearLag* for scheduled automatic cleanup.

Signs of Excess Mobs#

  • TPS drops below 20 (check with /tps).
  • The console shows a "Can't keep up!" warning.
  • CPU usage rises when many players are online.

See also the Lag Optimization guide for full tuning.

Need Help?#

Contact SupportOpen a ticket or ask directly on the Arqonara Discord.