Summary
After updating my Bedrock Dedicated Server (BDS) to version 1.18.30, the server's memory usage increases without bound, eventually consuming all physical memory, then crashes.
Details
When I attempt to join the server, the server crashes, disconnecting everyone.
The server idles around ~1 GB of memory usage, but when I join, its memory usage explodes to over 60GB. CPU and disk I/O also increase, but not unreasonably so. Since the machine has 64GB of physical memory, the server crashes after consuming it all.
The server crashes after logging that I have connected. This is always the last line before crashing:
[2022-04-21 18:15:14:567 INFO] Player connected: <MY GAMER TAG>
I have attached a screenshot of the resource usage.
Other Notes
Everything is vanilla. No mods, nothing odd about the world. Just vanilla survival with no more than 4 users logged in.
I can start the server and behavior is normal with no users logged in.
Immediately after updating to 1.18.30, I was able to log in and play for ~2 hours with no issues.
So far, users other than myself can join, and the server behaves normally. I don't know if this will change as it did for me.
Restarting the server has no effect. It comes back up as normal, but as soon as I attempt to join, it crashes.
The BDS generates a core dump that I am happy to share - but it's ~68 GB in size. I'm sure a dev could use it, along with debug symbols and GDB, to figure out what went wrong.
EDIT: I was able to compress it down to ~1.5 GB, but that's still way larger than the maximum size allowed by Jira.
Related issues
is duplicated by
Attachments
Comments


We're encountering this same thing and found it to be related to certain areas in the game loading. Suspected corrupt chunks and you just happen to be logging in to one

Yep, the main issue seems to be MCPE-154278. I’ve been commenting over there, this one should be marked as a duplicate.

Same at my environment, my system was running fine before 1.18.30.04 update. Now it randomly hangs after i try to connect / reconnect to server.
screen -L -Logfile "_logs/$(date +%Y%m%d%H%M%S).log" -dmS $server_name /bin/bash -c "./bedrock_server"
[2022-04-26 08:29:18:931 INFO] Version 1.18.30.04
[2022-04-26 08:29:18:931 INFO] Session ID f978bad5-4cfc-4551-af1d-177169aba431
[2022-04-26 08:29:18:932 INFO] Level Name: #############
[2022-04-26 08:29:18:938 INFO] Game mode: 0 Survival
[2022-04-26 08:29:18:938 INFO] Difficulty: 1 EASY
[2022-04-26 08:29:19:806 INFO] Content logging enabled. Writing log to: ContentLog_{_}Tuesday{_}{_}2022_April_26{_}_08_29_19
[2022-04-26 08:29:19:806 INFO] Experiment(s) active: wld_, VE_{_}, ddi{_}, biom, ucft, gtst, mola, scpt
[2022-04-26 08:29:19:806 INFO] opening worlds/#############/db
[2022-04-26 08:29:23:493 INFO] Server started.
[2022-04-26 08:29:23:902 INFO] IPv4 supported, port: 40306
[2022-04-26 08:29:23:902 INFO] IPv6 supported, port: 49943
[2022-04-26 08:30:03:178 INFO] Player connected: #####, xuid: ################
[2022-04-26 08:30:15:991 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.18.30.04
OS: Linux
Server start: 2022-04-26 08:29:18 CEST
Dmp timestamp: 2022-04-26 08:30:15 CEST
Upload Date: 2022-04-26 08:30:15 CEST
Session ID: f978bad5-4cfc-4551-af1d-177169aba431
Commit hash: 49c247f9e920c88ad8f8aa0d338313c739e3d554
Build id: 9208238
CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293
Crash
[2022-04-26 08:30:15:991 INFO] at clone (UnknownFile:?)
Failed to open curl lib from binary, use libcurl.so instead
ContentLog_Tuesday2022_April_26{}_08_29_19 is empty
I tried to look at CPU / MEM usage and its same here