{
   "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields",
   "id": "499742",
   "self": "https://bugs.mojang.com/rest/api/2/issue/499742",
   "key": "BDS-16839",
   "fields": {
      "issuetype": "1",
      "project": "11700",
      "fixVersions": [],
      "resolution": "3",
      "customfield_10500": {
         "self": "https://bugs.mojang.com/rest/api/2/customFieldOption/10300",
         "value": "Unconfirmed",
         "id": "10300",
         "disabled": false
      },
      "customfield_12800": null,
      "customfield_12602": [],
      "customfield_12601": null,
      "customfield_12604": null,
      "customfield_12603": null,
      "customfield_12606": null,
      "customfield_12605": null,
      "customfield_12608": null,
      "resolutiondate": "2022-04-23T18:53:35.000+0300",
      "customfield_12607": null,
      "customfield_12609": null,
      "workratio": -1,
      "lastViewed": null,
      "watches": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-16839/watchers",
         "watchCount": 4,
         "isWatching": false
      },
      "created": "2022-04-22T02:45:56.000+0300",
      "customfield_12000": null,
      "customfield_12201": null,
      "customfield_12600": null,
      "labels": [],
      "customfield_11700": "{}",
      "versions": [
         "20801"
      ],
      "issuelinks": [
         {
            "id": "265563",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/265563",
            "type": "10102",
            "outwardIssue": "499549"
         },
         {
            "id": "265847",
            "self": "https://bugs.mojang.com/rest/api/2/issueLink/265847",
            "type": "10102",
            "inwardIssue": "500725"
         }
      ],
      "assignee": null,
      "updated": "2022-04-26T12:22:44.000+0300",
      "status": "5",
      "description": "h2. Summary\r\n\r\nAfter 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.\r\nh2. Details\r\n\r\nWhen I attempt to join the server,\u00a0the server crashes, disconnecting everyone.\r\n\r\nThe 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. \u00a0Since the machine has 64GB of physical memory, the server crashes after consuming it all.\r\n\r\nThe server crashes after logging that I have connected. This is always the last line before crashing:\r\n{code:java}\r\n[2022-04-21 18:15:14:567 INFO] Player connected: <MY GAMER TAG> {code}\r\nI have attached a screenshot of the resource usage.\r\nh2. Other Notes\r\n * Everything is vanilla. No mods, nothing odd about the world. Just vanilla survival with no more than 4 users logged in.\r\n * I can start the server and behavior is normal with no users logged in.\r\n * Immediately after updating to 1.18.30, I was able to log in and play for ~2 hours with no issues.\r\n * 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.\r\n * Restarting the server has no effect. It comes back up as normal, but as soon as I attempt to join, it crashes.\r\n * *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.*\r\n ** *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.*",
      "customfield_11100": 0.0,
      "customfield_11300": null,
      "customfield_11500": null,
      "customfield_12503": null,
      "customfield_12700": null,
      "customfield_12502": null,
      "customfield_12504": null,
      "attachment": [
         "479907"
      ],
      "summary": "Server Memory Usage Explodes when Specific User Joins",
      "creator": "JIRAUSER716222",
      "reporter": "JIRAUSER716222",
      "customfield_10002": null,
      "customfield_12501": null,
      "customfield_12500": null,
      "customfield_11601": null,
      "customfield_11600": "0|i27ogf:",
      "environment": "Server Environment\r\nCPU: AMD Ryzen 7 3800X 8-Core Processor\r\nInstalled RAM: 64 GB\r\nOS: Debian 10\r\nMinecraft Version: Bedrock Dedicated Server 1.18.30.04\r\n\r\nClient Environment\r\nCPU: AMD Ryzen 7 5800X 8-Core Processor, 3.80 GHz\r\nInstalled RAM: 64 GB\r\nOS: Windows 11 Pro, Version 21H2, OS build 22000.613\r\nMinecraft Version: Minecraft 1.18.30 (Minecraft for Windows)",
      "customfield_11801": null,
      "customfield_11800": null,
      "customfield_11602": null,
      "customfield_11802": null,
      "comment": {
         "comments": [
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/499742/comment/1156589",
               "id": "1156589",
               "author": "rayth",
               "body": "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",
               "updateAuthor": "rayth",
               "created": "2022-04-23T14:15:00.218+0300",
               "updated": "2022-04-23T14:15:00.218+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/499742/comment/1156605",
               "id": "1156605",
               "author": "JIRAUSER716222",
               "body": "Yep, the main issue seems to be MCPE-154278. I\u2019ve been commenting over there, this one should be marked as a duplicate.",
               "updateAuthor": "JIRAUSER716222",
               "created": "2022-04-23T14:52:40.527+0300",
               "updated": "2022-04-23T14:52:40.527+0300"
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/499742/comment/1156677",
               "id": "1156677",
               "author": "ocelotonesie",
               "body": "ARISA_NO_DUPE_MSG",
               "updateAuthor": "ocelotonesie",
               "created": "2022-04-23T18:53:35.753+0300",
               "updated": "2022-04-23T18:53:35.753+0300",
               "visibility": {
                  "type": "group",
                  "value": "staff"
               }
            },
            {
               "self": "https://bugs.mojang.com/rest/api/2/issue/499742/comment/1157901",
               "id": "1157901",
               "author": "JIRAUSER656151",
               "body": "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.\r\n\r\n{{screen -L -Logfile \"_logs/$(date +%Y%m%d%H%M%S).log\" -dmS $server_name /bin/bash -c \"./bedrock_server\"}}\r\n\r\n{{[2022-04-26 08:29:18:931 INFO] Version 1.18.30.04}}\r\n{{[2022-04-26 08:29:18:931 INFO] Session ID f978bad5-4cfc-4551-af1d-177169aba431}}\r\n{{[2022-04-26 08:29:18:932 INFO] Level Name: #############}}\r\n{{[2022-04-26 08:29:18:938 INFO] Game mode: 0 Survival}}\r\n{{[2022-04-26 08:29:18:938 INFO] Difficulty: 1 EASY}}\r\n{{[2022-04-26 08:29:19:806 INFO] Content logging enabled. Writing log to: ContentLog_{_}Tuesday{_}{_}2022_April_26{_}_08_29_19}}\r\n{{[2022-04-26 08:29:19:806 INFO] Experiment(s) active: wld_, VE_{_}, ddi{_}, biom, ucft, gtst, mola, scpt}}\r\n{{[2022-04-26 08:29:19:806 INFO] opening worlds/#############/db}}\r\n{{[2022-04-26 08:29:23:493 INFO] Server started.}}\r\n{{[2022-04-26 08:29:23:902 INFO] IPv4 supported, port: 40306}}\r\n{{[2022-04-26 08:29:23:902 INFO] IPv6 supported, port: 49943}}\r\n{{[2022-04-26 08:30:03:178 INFO] Player connected: #####, xuid: ################}}\r\n{{[2022-04-26 08:30:15:991 INFO] Package: com.mojang.minecraft.dedicatedserver}}\r\n{{Version: 1.18.30.04}}\r\n{{OS: Linux}}\r\n{{Server start: 2022-04-26 08:29:18 CEST}}\r\n{{Dmp timestamp: 2022-04-26 08:30:15 CEST}}\r\n{{Upload Date: 2022-04-26 08:30:15 CEST}}\r\n{{Session ID: f978bad5-4cfc-4551-af1d-177169aba431}}\r\n{{Commit hash: 49c247f9e920c88ad8f8aa0d338313c739e3d554}}\r\n{{Build id: 9208238}}\r\n{{CrashReporter Key: 8c4937c1-64cb-3532-a8dc-1deb28f67293}}\r\n\r\n{{Crash}}\r\n{{[2022-04-26 08:30:15:991 INFO] \u00a0at clone (UnknownFile:?)}}\r\n{{Failed to open curl lib from binary, use libcurl.so instead}}\r\n\r\nContentLog_{_}Tuesday{_}{_}2022_April_26{_}_08_29_19 is empty\r\n\r\n\u00a0\r\n\r\nI tried to look at CPU / MEM usage and its same here",
               "updateAuthor": "JIRAUSER656151",
               "created": "2022-04-26T12:02:38.295+0300",
               "updated": "2022-04-26T12:02:38.295+0300"
            }
         ],
         "maxResults": 4,
         "total": 4,
         "startAt": 0
      },
      "votes": {
         "self": "https://bugs.mojang.com/rest/api/2/issue/BDS-16839/votes",
         "votes": 2,
         "hasVoted": false
      }
   },
   "changelog": {
      "startAt": 0,
      "maxResults": 6,
      "total": 6,
      "histories": [
         {
            "id": "2564657",
            "author": "JIRAUSER716222",
            "created": "2022-04-22T03:05:18.456+0300",
            "items": [
               {
                  "field": "description",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": "h2. Summary\r\n\r\nAfter 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.\r\nh2. Details\r\n\r\nWhen I attempt to join the server,\u00a0the server crashes, disconnecting everyone.\r\n\r\nThe 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. \u00a0Since the machine has 64GB of physical memory, the server crashes after consuming it all.\r\n\r\nThe server crashes after logging that I have connected. This is always the last line before crashing:\r\n{code:java}\r\n[2022-04-21 18:15:14:567 INFO] Player connected: <MY GAMER TAG> {code}\r\nI have attached a screenshot of the resource usage.\r\nh2. Other Notes\r\n * Everything is vanilla. No mods, nothing odd about the world. Just vanilla survival with no more than 4 users logged in.\r\n * I can start the server and behavior is normal with no users logged in.\r\n * Immediately after updating to 1.18.30, I was able to log in and play for ~2 hours with no issues.\r\n * 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.\r\n * Restarting the server has no effect. It comes back up as normal, but as soon as I attempt to join, it crashes.\r\n * *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.*",
                  "to": null,
                  "toString": "h2. Summary\r\n\r\nAfter 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.\r\nh2. Details\r\n\r\nWhen I attempt to join the server,\u00a0the server crashes, disconnecting everyone.\r\n\r\nThe 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. \u00a0Since the machine has 64GB of physical memory, the server crashes after consuming it all.\r\n\r\nThe server crashes after logging that I have connected. This is always the last line before crashing:\r\n{code:java}\r\n[2022-04-21 18:15:14:567 INFO] Player connected: <MY GAMER TAG> {code}\r\nI have attached a screenshot of the resource usage.\r\nh2. Other Notes\r\n * Everything is vanilla. No mods, nothing odd about the world. Just vanilla survival with no more than 4 users logged in.\r\n * I can start the server and behavior is normal with no users logged in.\r\n * Immediately after updating to 1.18.30, I was able to log in and play for ~2 hours with no issues.\r\n * 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.\r\n * Restarting the server has no effect. It comes back up as normal, but as soon as I attempt to join, it crashes.\r\n * *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.*\r\n ** *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.*"
               }
            ]
         },
         {
            "id": "2566687",
            "author": "ocelotonesie",
            "created": "2022-04-23T18:53:35.761+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "MCPE-154278",
                  "toString": "This issue duplicates MCPE-154278"
               }
            ]
         },
         {
            "id": "2566689",
            "author": "ocelotonesie",
            "created": "2022-04-23T18:53:35.766+0300",
            "items": [
               {
                  "field": "resolution",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "3",
                  "toString": "Duplicate"
               },
               {
                  "field": "status",
                  "fieldtype": "jira",
                  "from": "1",
                  "fromString": "Open",
                  "to": "5",
                  "toString": "Resolved"
               }
            ]
         },
         {
            "id": "2566890",
            "author": "JIRAUSER716222",
            "created": "2022-04-24T01:17:12.755+0300",
            "items": [
               {
                  "field": "security",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "10318",
                  "toString": "Minecraft - Private"
               }
            ]
         },
         {
            "id": "2566892",
            "author": "JIRAUSER716222",
            "created": "2022-04-24T01:21:29.600+0300",
            "items": [
               {
                  "field": "security",
                  "fieldtype": "jira",
                  "from": "10318",
                  "fromString": "Minecraft - Private",
                  "to": null,
                  "toString": null
               }
            ]
         },
         {
            "id": "2569352",
            "author": "JIRAUSER706438",
            "created": "2022-04-26T12:22:44.335+0300",
            "items": [
               {
                  "field": "Link",
                  "fieldtype": "jira",
                  "from": null,
                  "fromString": null,
                  "to": "MCPE-154808",
                  "toString": "This issue is duplicated by MCPE-154808"
               }
            ]
         }
      ]
   }
}