Memory Leak
RAM usage increased as players connect to the server which is normal. The RAM Doesn't drop free up after players disconnect. After 8 hours running, my RAM usage for my server is 277 MB. WHen the server is first started with no players, the usage is around 60MBs.
Environment
Windows 10 1.7.0
Linked Issues
Attachments1
Comments6
History10
Added relates to link: BDS-205Server causes high CPU usage even when idlingDuplicate
Added labels: awa
Removed labels: awa
Added labels: awaiting-response
Added is duplicated by link: BDS-5690Entities not unloading / memory usage slowly increasingDuplicate
Added affects versions: 1.14.60
Resolution: Unresolved → Awaiting Response
Resolution: Awaiting Response → Unresolved
Resolution: Unresolved → Incomplete
I'm seeing a similar issue. I created a very large furnace array that burns bamboo to smoke kelp. In total the system has over 140 pistons and nearly 200 blocks of sand that fall, and it creates 900 smoked kelp per minute, which gets put into water. When the machine is on, server memory increases by 6mb per minute, and it is not released when the machine is shut off, even after unloading the area or logging out entirely. RAM usage increased to 4.2gb after 8 hours running the machine.
Granted, this is with a massive machine, which is not typical, but looking at the memory usage of the process, I see it go up by a few KB every 10-20 seconds without the machine running, but I'm not seeing it go down, even with no one logged on.
(edit: To clarify, memory usage only goes up every 10-20 seconds while players are logged in. When players are not logged in, it does not increase, but it also does not decrease)
I've taken a memory dump of the bedrock_server.exe process while it is using 4.5gb of memory. This is after turning my furnace machine off, and leaving the area to unload it, and logging out. No players were logged in while this was taken. I have one ticking area, but that is at 8000,8000 - nowhere near the area we play in. There are no plugins loaded on the server.
Server version is 1.14.30, running on Windows 10 Pro, on an Intel NUC with an i5 8259U and 32gb of memory.
Zipped memory dump can be found here:
https://drive.google.com/open?id=1xcmkvyNfsvDTe1Vqwvmnnwnf_q6j3p3F
I can add a world download as well if the devs want it, but I don't think this issue is related to my world, as memory usage goes up even when my furnace machine isn't running, just not by as much. The size of my machine just makes the issue much more apparent than it normally is.
Hi Asher,
Out of curiosity what OS do you use?
If you're able to I'd love to try your smelting machine on my server to replicate. I run a server for a few people but have it regularly reboot and backup so don't see this issue. If you have a way to reliably reproduce it I would like to give it a try.
Ionic
Edit: It might also be worth double checking it in 1.14.32.1, a bunch of improvements appear to have been made that may affect this as well.
I use Windows 10 Pro - I wanted to run it on Linux, but hit this bug: BDS-2574
My machine is currently broken and being re-designed, but I'll see if I have an older backup somewhere. If not, I'll update when I have a working version to share.
I was talking with a friend about this issue though and we were theorizing - maybe the server software is doing what it's supposed to, and just not releasing memory since there's plenty? I need to test in a VM and limit the ram to like 2GB and see what it does when it hits that - does it start using swap space, or does it release the memory it shouldn't need?
I'm going to temporarily close this one off as awaiting response. At the moment I've not seen any evidence of a memory leak and until we're able to pinpoint reproduction steps there's very little we can escalate to Mojang.
It would be expected that the server wouldn't always revert to the amount of memory it uses when its first started. Many entities etc remain cached for performance which increases passive memory usage. I run a bunch of servers and wouldn't consider the behaviour I'm seeing from BDS unusual.
Thats not to say there is no memory leak, just that, from what we have right now, there's nothing that can be escalated. If someone is able to find clear evidence and reproduction steps to demonstrate the issue please comment back and the report will reopen.
Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.
Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki