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/
@Si7VdeR
I believe your NPC plugin is keeping all those chunks loaded.
@bob7l
Ok thanks and I did do some testing and I pretty much get all the other things.
Only 1 problem though, I mainly went to use this plugin because my server had 9000 useless chunks loaded and mobs weren't spawning.
So I use /lagg unloadchunks but that also removes all my NPCs at the spawn area (not sure if they also get removed from other places than the spawn area).
I got keep-spawn-in-memory: true. The NPCs are also still there, if I select one and tp to it then I get tped to his position but he is either invisible or he got despawned from unloading the chunks.
Is there an option to fix that or can I not use /lagg unloadchunks if I have NPCs installed?
NPC plugin: Citizens 1.10 of ClearLagg version.
@Si7VdeR
List all the config values you do not understand and i will make tips on them.
keep-spawn-in-memory prevents chunks around the spawn from being unloaded. Enable-api allows for other plugins to prevent clearlag from removing their stuff.
I really need a config setup guide. I can't find a good one explaining all the options. Like: keep-spawn-in-memory: true ??? enable-api: true ??? I can keep going but you get the point, I have no clue what these do, and many more, and I hate to start guessing.
Can you make this open source?
I idiodically lit over 250,000 tnt wrapped in over a million sand (used world edit) and I think this just saved my server!
@JugadorON
It's been out for a few months now: https://dev.bukkit.org/bukkit-plugins/clearlagg/files/67-clear-lag-v2-9-3/
I need version to 1.10.2, please!!!
Java 8!!
@PhanaticD
I'll look into it when i have time. Thanks for the update.
@bob7l
i was using build 853, however I have not had the crash ever since i changed - Slime liveTime=1200 to just - Slime for the chunk entity limiter
@PhanaticD
I might be wrong... but i suspect you ran out of memory/resources on your server. the question is why, i think.
@PhanaticD
Loooks like when "die" is called on a slime, it splits into multiple slimes, and the cycle continues until the slime is completely removed which in turn causes a stackoverflow error.
I believe that's a Paperspigot error. The die() method was designed to mark an entity for removal, NOT to spawn in more entities. My guess is they hacked around the code in an attempt to further optimize it, but ended up causing more problems. Spigot also does NOT have this problem.
Could you give me the exact Paperspigot version you're using?
do you know what might cause this http://pastebin.com/raw/mYxFESTA
How do I make auto-lagclear all mobs and named.. when I put "ALL" and "Named" in config at mobs to remove part it says unknown type.. please help
@JargonMan
Read this page. It shows them to the right of the commands
Permissions? I desperately need them. Thanks
@sbmercury
You've got an outdated config so you're using old removed tps-meter features. Update the config.
@bob7l
That's what I thought and once I disabled tps-meter the issue was fixed however the command isn't listed, I've attached my clearlagg config, maybe you can figure out why it's stopping server activity even though that command isn't being listed, thanks http://pastebin.com/mqb1mqhe
@sbmercury
You have the tps-meter on with /lagg halt in the commands. It's halting most server activity until the TPS recovers.
I'm troubleshooting a server, occasionally water will stop flowing, portals won't light and crop won't grow, I've managed to pin this down where that every time it happens, ClearLag has "halted server activity" my curiosity is why clearlag is doing that, the command isn't listed in the config anywhere and it's doing it seemlingly randomly, although lag spikes do seem to help trigger it, any idea why a server would halt server activity after the server being on for some time without me telling it to? Also, would this stop water flow, portals and crop growth well still allowing commands to work? Thanks for any help and your hard work on this plugin