[BDS-16839] Server Memory Usage Explodes when Specific User Joins Created: 21/Apr/22  Updated: 26/Apr/22  Resolved: 23/Apr/22

Status: Resolved
Project: Bedrock Dedicated Server
Affects Version/s: 1.18.30
Fix Version/s: None

Type: Bug
Reporter: DoctorKest Assignee: Unassigned
Resolution: Duplicate Votes: 2
Labels: None
Environment:

Server Environment
CPU: AMD Ryzen 7 3800X 8-Core Processor
Installed RAM: 64 GB
OS: Debian 10
Minecraft Version: Bedrock Dedicated Server 1.18.30.04

Client Environment
CPU: AMD Ryzen 7 5800X 8-Core Processor, 3.80 GHz
Installed RAM: 64 GB
OS: Windows 11 Pro, Version 21H2, OS build 22000.613
Minecraft Version: Minecraft 1.18.30 (Minecraft for Windows)


Attachments: PNG File Screen Shot 2022-04-21 at 6.16.45 PM.png    
Issue Links:
Duplicate
duplicates MCPE-154278 World corrupted/broken in 1.18.30 Resolved
is duplicated by MCPE-154808 Server randomly crashes Resolved
Confirmation Status: Unconfirmed

 Description   

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.


 Comments   
Comment by Michal Brzek [ 26/Apr/22 ]

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_Tuesday2022_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

Comment by DoctorKest [ 23/Apr/22 ]

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

Comment by Rayth [ 23/Apr/22 ]

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

Generated at Sat Jan 11 08:15:51 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.