ClearLagg


Clearlag was designed to reduce lagg on Bukkit/Spigot servers by removing entities, and preventing it through it's many optional features. Of course this plugin can't fix all lag, but it does clear most of it. If your using a larger server with 20+ players, simply using the /lagg clear command can drastically decrease RAM/CPU usage by simply removing your configured entities.

- Permission support
- Entity limiter
- Reduces lag
- Decreasing RAM/CPU usage
- Ability to stop a TNT chain reaction
- Option to limit mob spawners
- Locate overcrowded/abused chunks
- Many easy to use commands
- Real-time module controls
- Very lightweight - only enables selected features
- Remove old logs upon enabling server
- Limit AI processing attributes
- Console support for most commands
- Can adjust times when the server is cleared of lagg
- Completely configurable

| Command | Description | Permission |
|---|---|---|
| /lagg clear | (Clears entities) | lagg.clear |
| /lagg check [world1 world2...] | (Counts all entities) | lagg.check |
| /lagg reload | (Reloads schedulers/config) | lagg.reload |
| /lagg killmobs | (Kills mobs) | lagg.killmobs |
| /lagg area <radius> | (Removes entities within given radius) | lagg.area |
| /lagg unloadchunks | (Unloads un-needed chunks) | lagg.unloadchunks |
| /lagg chunk [amount] | (Locate possible laggy chunks) | lagg.chunk |
| /lagg tpchunk <x> <z> <world> | (Teleport to chunks) | lagg.tpchunk |
| /lagg admin | (Manage clearlag's modules) | lagg.admin |
| /lagg gc | (Attempt to free memory) | lagg.gc |
| /lagg tps | (View current TPS) | lagg.tps |
| /lagg halt | (Temporary disable basic server functions [mob spawning and so on]) | lagg.halt |
| /lagg | (Shows helpful page) |
lagg.help |

| Name | Description | Link |
|---|---|---|
| SaveDeathDrops | (Blocks clearlag from removing items dropped from death) | Download Link |
Helpful video made by cobwebster
Helpful video by RayoTutoriales (Español)
Still have a question?
If you are having issues or cannot get the plugin to function properly, feel free to open a ticket, explaining your problem in detail will help me help you!
[Please note]
This plugin contains an auto-updater which will request, or download, updated files of Clearlag directly from this page. To disable this feature, open the config.yml, under plugins/Clearlag, and set auto-update to false.
Please do not post an issue until you've fully read the config located under /plugins/Clearlag/config.yml
Maintained Clearlag page: https://www.spigotmc.org/resources/clearlagg.68271/


-
View User Profile
-
Send Message
Posted Jan 12, 2013Love this plugin! Is there source code available for it? googled without success. One minor annoyance is this:
While loading ClearLag (plugins/clearlag.jar) found old-data folder: plugins/clearlag next to the new one: plugins/ClearLag
minor fail on systems with case-insensitive file systems, like windows or macosx.
-
View User Profile
-
Send Message
Posted Jan 12, 2013How do I set mob to be autocleared in the new config?
-
View User Profile
-
Send Message
Posted Jan 10, 2013Suggestion: Option to remove the Broadcast to Console :)
-
View User Profile
-
Send Message
Posted Jan 9, 2013@frenchfri12
Clearlag doesn't display what entities have been removed, just a simple message saying how many entities have been removed every 5 minutes. Check the config
-
View User Profile
-
Send Message
Posted Jan 9, 2013This is constantly spamming my chat and consle with in excess of 100 messages per minute in my consle, about which entites it removed, and every minute 2 come up in chat, how do i turn these off?
-
View User Profile
-
Send Message
Posted Jan 8, 2013@bob7l
I don't use tekkit. I use Feed The Beast.
-
View User Profile
-
Send Message
Posted Jan 8, 2013@YiveMe
I don't support tekkit.
-
View User Profile
-
Send Message
Posted Jan 8, 2013I have gotten reports from my players that this plugin delete's their Mining turtles, do you think you can make it so it doesn't delete mining turtles?
-
View User Profile
-
Send Message
Posted Jan 8, 2013What's the permission for /tps?
-
View User Profile
-
Send Message
Posted Jan 8, 2013@bob7l
Sorry, maybe my config wasn’t generated properly. I’ll start fresh and see what was the problem.
Yeah, if you put it like that, it sucks indeed. I thought there was a way to clear entities from flat chunk files.
-
View User Profile
-
Send Message
Posted Jan 7, 2013@EncryptedCurse
I've found the best is to combine this plugin (for its mob and entity management) with a separate *monitoring* plugin, such as LagMeter. I even use LagMeter to fire off commands to ClearLagg when certain thresholds are met. Super automatic...
-
View User Profile
-
Send Message
Posted Jan 7, 2013@EncryptedCurse
That's not something this plugin needs, I rather not add things that can be easily obtained.
-
View User Profile
-
Send Message
Posted Jan 7, 2013Could you add in a RAM usage counter?
-
View User Profile
-
Send Message
Posted Jan 7, 2013@PEZA0
Love the idea, will add this in the next release!
Btw everyone, there might be a DEV build on the page in a bit. I need some people to test it and report back, Thanks!
-
View User Profile
-
Send Message
Posted Jan 7, 2013@ridddle
"PS: Auto-removal should also allow for a more intelligent cleanup, let’s say don’t remove entities and don’t display any messages if entity count is below a certain number. It would make for a more peaceful gameplay and chat when there isn’t a lot of players online." This was added a long time ago.
"I don’t understand why ClearLag doesn’t remove entities in unloaded chunks. That’s where the performance hit is – not with stuff spawning, but with stuff being saved when chunks unload, and then loading back when people enter them on busy nights. Can we please get an option to remove all entities specified in config, not only those in loaded chunks?" I'm not sure what your telling me to do. I would have to manually load every single chunk your server has in order to remove all entities which in return would cause tremendous lag. If a chunk is unloaded the entities are also unloaded. Clearlag will only get entities available in the server, it wont search around in your world files for entities.
-
View User Profile
-
Send Message
Posted Jan 7, 2013+1 for never removing tamed pets
-
View User Profile
-
Send Message
Posted Jan 7, 2013cane u make it compactebol white tekkit ?
-
View User Profile
-
Send Message
Posted Jan 7, 2013PEZA0, yes! Please, allow us to specify to never remove tamed pets. It’s heartbreaking for players.
And PEZA0, for mob limiting use this: https://github.com/NerdNu/MobLimiter
-
View User Profile
-
Send Message
Posted Jan 7, 2013Can add to only remove UNTamed Wolfs or Cats... and not clean tamed animals?
-
View User Profile
-
Send Message
Posted Jan 7, 2013I don’t understand why ClearLag doesn’t remove entities in unloaded chunks. That’s where the performance hit is – not with stuff spawning, but with stuff being saved when chunks unload, and then loading back when people enter them on busy nights. Can we please get an option to remove all entities specified in config, not only those in loaded chunks?
PS: Auto-removal should also allow for a more intelligent cleanup, let’s say don’t remove entities and don’t display any messages if entity count is below a certain number. It would make for a more peaceful gameplay and chat when there isn’t a lot of players online.