Compatibility
Minecraft: Java Edition
Platforms
Links
Tags
Creators
Details
CPU Optimizer
Tired of plugins that claim to "fix lag" by just wiping half your server's entities or breaking redstone contraptions your players spent days building? Yeah, me too.
I built CPU Optimizer because I needed something smarter for production servers. Most lag spikes come from very specific things—runaway redstone clocks, 200 villagers crammed into a 3x3 trading hall constantly checking for workstations, or hundreds of empty hoppers pinging chests 20 times every single second.
This plugin doesn't touch anything when your server is running fine at 20 TPS. It only steps in when tick times (MSPT) actually start slipping, throttles what's causing the problem, and then immediately backs off once the server stabilizes.
What it actually does
- Adaptive throttling (No dumb entity wipes): If TPS is 19.8+, the plugin essentially sits idle and lets vanilla Minecraft do its thing. If TPS drops to 17 or 15, it starts scaling back background calculations on distant mobs, idle villagers, and heavy chunks. Once TPS is healthy again, everything smoothly returns to normal.
- Redstone & Lag Machine protection: Catches rapid observer loops, comparator clocks, and piston spam before they bring your tick loop to a crawl. If a chunk goes crazy, it temporarily cuts the circuit and pings online staff with the exact coordinates so you can inspect it.
- Villager brain fix: Villagers searching for job blocks are a massive CPU sink. The plugin slows down POI searches for locked traders and stops pointless wandering in trading halls, without breaking restocks or trading menus.
- Empty hopper caching: Stops empty hoppers from pointlessly querying containers every single tick. Batches transfers where possible so your storage systems don't eat your main thread.
- Built-in Web Dashboard: No database setup, no webhooks, no external bloat. Just a clean dark-mode dashboard running directly off a lightweight port on your server. You can check your TPS, MSPT, CPU usage, and top laggy chunks from your phone or browser anytime.
- Zero version headaches: Written cleanly on standard Paper/Bukkit APIs without version-dependent NMS hacks. Works on 1.21, 1.21.x, Spigot, Purpur, and even multi-threaded Folia setups.
In-game command: /cpuopt
Running /cpuopt gives you an instant breakdown of what is actually eating your tick time:
CPU Optimizer
━━━━━━━━━━━━━━━━━━━━━━
TPS: 19.94
MSPT: 43.2ms
CPU: 71%
Entity AI: 18.4ms
Redstone: 7.2ms
Hoppers: 4.8ms
Villagers: 3.1ms
Chunks: 2.7ms
Top Laggy Chunks
1. world 124,-53 8.7ms
2. world 128,-49 6.3ms
3. world 119,-61 5.1ms
━━━━━━━━━━━━━━━━━━━━━━
Command Description Permission
/cpuopt Shows the live server CPU & subsystem profiler cpuoptimizer.use
/cpuopt profile <type> Switches profile (survival, minigame, skyblock, lifesteal, prison) cpuoptimizer.admin
/cpuopt dashboard Prints the Web Dashboard access URL and admin passkey cpuoptimizer.admin
/cpuopt clear Performs an instant sweep of stuck arrows, expired items, and vehicle clutter cpuoptimizer.admin
/cpuopt suspend <world> <x> <z> Manually pauses redstone activity in a specific chunk cpuoptimizer.admin
/cpuopt resume <world> <x> <z> Unfreezes redstone in a chunk cpuoptimizer.admin
/cpuopt reload Reloads config.yml settings without restarting cpuoptimizer.admin


