-
Notifications
You must be signed in to change notification settings - Fork 551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAM overload with backpacks #4011
Comments
Please provide the entire error |
[Craft Scheduler Thread - 814 - Slimefun/WARN]: [Slimefun] Plugin Slimefun vDEV - 1104 (git c977454) generated an exception while executing task 4745749 |
Do you mind providing the file of said player? (The file is named in UUID format, under |
I renamed it to .txt, because github does not support uploading .yml |
This aint a fun issue to solve sadly. |
Hey, so I don't believe the extremely hefty file is the cause of your OOM. The string at most will occupy 21MB, which implies that your server is already nearing the max heap limit. |
so I finally was able to track down this problem, it happens with any backpack at all, it doesn't even have to be a big player file, it just needs opening the backpack many times in a short time. |
Send us the dump please |
my internet is very slow (under 1 mb/s) so sending the dump is not really an option, it also contains sensitive info such as passwords, but I can provide screenshots of desired areas in Eclipse Memory Analyzer |
Without info we can’t do much |
for the time being, disabling backpacks and using a slimefun addon that adds "backpack unloader" machine, is my solution to this problem |
❗ Checklist
📍 Description
One player on my server uses backpacks heavily, his Slimefun data file weights 10.1MB, when he joins, there is about 50% chance that the server will crash with out of memory error, this error happens when the server has 16 GB of RAM allocated and he is the only player on the server.
📑 Reproduction Steps
Have a player with huge amount of backpacks full of items with 10.1MB slimefun player data file in total, join the server and observe about 50% of times it crashing or ram usage going high
💡 Expected Behavior
I expected RAM usage of backpacks to not be so high, maybe load them only on use instead of all at once on join?
📷 Screenshots / Videos
No response
📜 Server Log
During out of memory crash, I saw mention of: io.github.thebusybiscuit.slimefun4.api.player.PlayerProfile and io.github.thebusybiscuit.slimefun4.libraries.dough.config.Config and org.bukkit.configuration.file.YamlConfiguration.loadConfiguration
📂
/error-reports/
folderNo recent errors here
💻 Server Software
Purpur
🎮 Minecraft Version
1.19.x
⭐ Slimefun version
Slimefun DEV - 1104 (git c977454)
🧭 Other plugins
No response
The text was updated successfully, but these errors were encountered: