Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-188163

Abnormally very high RAM usage since 1.13 (client side)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.19.4 Pre-release 1
    • 1.15.2, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 4, 1.16 Pre-release 6, 1.16 Pre-release 7, 1.16 Pre-release 8, 1.16 Release Candidate 1, 1.16, 1.16.1, 20w27a, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, 1.16.2 Release Candidate 1, 1.16.2 Release Candidate 2, 1.16.2, 1.16.3 Release Candidate 1, 1.16.3, 1.16.4 Pre-release 1, 1.16.4 Pre-release 2, 1.16.4 Release Candidate 1, 1.16.4, 20w46a, 20w48a, 20w49a, 21w03a, 1.16.5, 21w05a, 21w05b, 21w06a, 21w07a, 21w11a, 1.17, 1.17.1 Pre-release 1, 1.17.1, 21w37a, 21w41a, 21w44a, 1.18 Pre-release 1, 1.18 Pre-release 4, 1.18 Release Candidate 1, 1.18, 1.18.1, 22w11a, 22w13a, 22w16b, 1.19, 1.19.1 Release Candidate 1, 1.19.1 Pre-release 2, 1.19.1 Pre-release 4, 1.19.2, 22w45a, 1.19.3, 23w07a
    • Confirmed
    • Performance
    • Normal

      The bug

      Since 1.13, the RAM used by the game has increased drastically to reach more than 5 GB in 1.15.2 and higher when Minecraft is not limited by JVM default arguments (= put -Xmx8G for example)!

      For comparison, 1.12.2 uses only 500 MB of RAM!

      This problem is apparently due to the DataFixerUpper introduced in 1.13.

      How to test

      1. Go to the "Installations" section of your Minecraft launcher.
      2. Click on the three dots that appear when you hover over the profile you want to use for this test, and then click "Edit". If you don't already have a profile, create one!
      1. Select the version you want to test.
      2. Click on "More Options"
      3. Change the "-Xmx" argument in the "JVM Arguments" section to allocate 6 GB of RAM or more. Example for 8 GB (recommended) : -Xmx8G
      4. Save your profile.
      5. Open the task manager of your operating system.
      6. Launch the game with the correct profile and observe the evolution of the RAM used by the game in the task manager.
      7. Repeat for each version you want to test.

      Videos tests

      Here are all the tests I did from 1.12.2 to 1.16 Pre-Release 2, on all stable versions of Minecraft.
      I have allocated 8 GB of RAM each time so as not to restrict the game to too low a ceiling, which would not allow us to see the problem.
      No other programs run on the PC (except Discord and my recording program).
      I did the test on my two different machines and the results are the same.

      We can also observe that with each new version, the CPU is used harder and harder, even after the game is fully loaded (especially in 1.16).

      Note: This ticket is attached to MC-190258 which processes the server side.

        1. Client RAM Test 1.12.2.mp4
          2.32 MB
          [Helper] ZeNico13
        2. Client RAM Test 1.13.2.mp4
          2.39 MB
          [Helper] ZeNico13
        3. Client RAM Test 1.14.4.mp4
          2.96 MB
          [Helper] ZeNico13
        4. Client RAM Test 1.15.2.mp4
          4.10 MB
          [Helper] ZeNico13
        5. Client RAM Test 1.16 Pre-2.mp4
          4.49 MB
          [Helper] ZeNico13
        6. Tuto 1.png
          43 kB
          [Helper] ZeNico13
        7. Tuto 2.png
          32 kB
          [Helper] ZeNico13

            Unassigned Unassigned
            ZeNico13 [Helper] ZeNico13
            Votes:
            70 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: