What's new

Bug: Ability to exclude some worlds from caching active-mobs.json

kjiang

New Member
Premium Supporter
Supporter
Joined
Jan 14, 2017
Messages
1
Enter a brief description of what is broken Ability to exclude some worlds from caching active-mobs.json

What version of Minecraft are you using? 1.16

What server jar are you using? Spigot

What is this a bug report for? MythicMobs

What version of the plugin are you using? 4.11.0 build 3555

Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
MythicMobs is a great plugin and we have been using it for years.

We are running DungeonsXL(0.18 build 1066 https://erethon.de/repo/de/erethon/dungeonsxl/dungeonsxl-dist/) to create some independent dungeon minigames. Those minigame are created through standalone worlds (usually named like DXL_Game_123) and uses MythicMobs to spawn custom mobs. These independent worlds will be unloaded and deleted once players finished their games, or after the server restarted.

We noticed that MythicMobs will cache mobs into active-mobs.json to make MM's mobs persisted after server restart. However, with some dungeon plugins like DungonsXL, mobs are still cached in the json file even though those worlds are no longer exist. We have approximately 50-100 DXL worlds being created every day and each of them spawn 100-300 mobs, causing the json size grows exponentially. By default MM will save all the mobs every 5 minutes. With a 100MB json our server TPS is plummeted under 12. We have to stop the server entirely and delete the json to restore performance.

So we would like to have an option in the config so that some worlds can be "ignored" from being cached, with wildcard names if possible (like DXL_Game_*).

Also, it seems that the caching is happening on the main server thread and halting the whole server. Is it possible to off-load it to another thread?

Thank you!

Example Configurations
 
Top