Bug Closed · Could not replicate

Possible memory leak

#3813 opened by Unknown 3 years ago

Unknownreported this bug

Hi, im having similar issue regarding dungeons, like in #197. Unfortunately, i dont use CMI so I can't provide screenshot for memory leak. But, the author asked something like a log when the dungeon was created and deleted, and any world management record that might be the cause. Let me know if there is any info that I can provide from my end.

[Legacy attachment omitted] https://pastebin.com/zWHdUvMJ

When its creating a new dungeon:

[08:51:09 INFO]: crimsson issued server command: /md play dungeon1 [08:51:10 INFO]: [de.Keyle.MyPet.MyPetPlugin] [MyPet] added dungeon1_1 to 'default' group. [08:51:10 INFO]: [CWR] §bLoading YAML files... [08:51:10 INFO]: [CWR] §7Loaded file §econfig.yml§7. [08:51:10 INFO]: [CWR] §7Loaded file §elang.yml§7. [08:51:10 INFO]: [CWR] §7Loaded file §eworlds.yml§7. [08:51:10 INFO]: [CWR] §7Loaded file §ewebhooks.yml§7. [08:51:10 INFO]: [CWR] §7Loaded file §eplugin-data.yml§7. [08:51:10 INFO]: [CWR] §7Loaded §e5§7 files in §a67ms§7. [08:51:10 INFO]: [CWR] [08:51:10 INFO]: [CWR] §bLoading world configurations... [08:51:10 INFO]: [CWR] §cThe world §7'default_world_name'§c is not an existing world! Disabling this world. [08:51:10 INFO]: [CWR] §cThe world §7'example_world_name'§c is not an existing world! Disabling this world. [08:51:10 INFO]: [CWR] §7Loaded world §e'world_nether'§7. [08:51:10 INFO]: [CWR] §7Loaded world §e'world_the_end'§7. [08:51:10 INFO]: [CWR] §7Loaded world §e'resource'§7. [08:51:10 INFO]: [CWR] §7Loaded §e3§7 worlds in §a11ms§7. [08:51:10 INFO]: [CWR] [08:51:10 INFO]: Preparing start region for dimension minecraft:dungeon1_1 [08:51:10 INFO]: Time elapsed: 11 ms [08:51:10 INFO]: [WorldGuard] (dungeon1_1) TNT ignition is PERMITTED. [08:51:10 INFO]: [WorldGuard] (dungeon1_1) Lighters are PERMITTED. [08:51:10 INFO]: [WorldGuard] (dungeon1_1) Lava fire is PERMITTED. [08:51:10 INFO]: [WorldGuard] (dungeon1_1) Fire spread is UNRESTRICTED. [08:51:10 INFO]: [WorldGuard] Loaded configuration for world 'dungeon1_1' [08:51:10 INFO]: [QuickShop-Hikari] Loading shops from database... [08:51:10 INFO]: [QuickShop-Hikari] Used 2ms to fetch 30 shops from database. [08:51:10 INFO]: [QuickShop-Hikari] Loading shops into memory... [08:51:10 INFO]: [QuickShop-Hikari] Done. Used 0ms to load 0 shops into memory. [08:51:10 INFO]: §d-= Loading map dungeon1_1 processed in 173ms. =- [08:51:10 INFO]: §d-= Loading Dungeon dungeon1 processed in 238ms. =-

When its deleted:

[08:55:37 INFO]: crimsson issued server command: /leave [08:55:37 INFO]: §dCleaning up instance 'dungeon1_1'... [08:55:37 WARN]: [Multiverse-Core] Hmm Multiverse does not know about this world but it's loaded in memory. [08:55:37 WARN]: [Multiverse-Core] To let Multiverse know about it, use: [08:55:37 WARN]: [Multiverse-Core] /mv import dungeon1_1 NORMAL [08:55:37 INFO]: CraftWorld{name=dungeon1_1} [08:55:37 INFO]: [ChunkHolderManager] Waiting 60s for chunk system to halt for world 'dungeon1_1' [08:55:37 INFO]: [ChunkHolderManager] Halted chunk system for world 'dungeon1_1' [08:55:37 INFO]: §d-= Unloading world dungeon1_1 processed in 1ms. =- [08:55:37 INFO]: §d-= Cleaning up dungeon1_1 processed in 66ms. =-

Unknowncommented

Hmmm... the logs you've provided me with in regards to the dungeon saving and loading reports that everything is working as intended in Mythic Dungeons. I wonder if by chance Multiverse is forcing the world(s) to remain loaded... This is a very difficult issue to test as I have not been able to replicate any of the memory leak issues people are reporting.

Do you know if the memory leak is happening with every dungeon played, or only sometimes? If it happens all the time, would you be willing to try removing Multiverse temporarily just to see if you continue experiencing memory issues?

Unknowncommented

I've been disabling and enabling dungeon on my server just to analyze whether it was MD. Based on my observation, the possible leak happened often but not all the time. I can't give exact answer for this

Im afraid, if i tried to remove Multiverse, there will be some other issues because I used several worlds (and few of them uses custom world gen) on my server.

Is there any thing I can do or try, other than removing Multiverse? I'll try to remove multiverse, as a last attempt.

Unknowncommented

Thats Bukkit problem with unloading world, look at it

Best (and only) way to fix it is to use SlimeWorldManager(aka slimepaper) fork from paper server

Unknowncommented

Hmm, people shouldn't need to use an additional piece of software or extra plugin just to avoid memory leaks...

While we haven't encountered these leaks, all of my servers have a nightly automated restarts in order to reset and clear any junk since Minecraft historically runs worse the longer it's up. While this isn't really a solution, it'd be a good bandaid fix for the time being unless you get severe memory issues throughout the day.

Does the stuck worlds issue happen very often in a given day?

Unknowncommented

I've been investigating some potential causes for worlds getting stuck and have implemented some potential hail mary fixes in the latest dev build. I'd highly recommend trying the latest build and letting me know if you are still having memory leak issues.

Unknowncommented

Since I haven't heard anything for a while now, I'm going to close this issue. If you continue to encounter significant memory leak issues, feel free to re-open this issue.

Sign in to join the discussion.