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

Abnormally very high RAM usage since 1.13 (server side)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 1.15.2, 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
    • Fix Version/s: None
    • Environment:
      Windows 10 1909 (64 bits) (November 2019 Update)
      Java 8 Update 251 (64 bits)
    • Confirmation Status:
      Community Consensus
    • Category:
      Performance
    • Mojang Priority:
      Normal

      Description

      The bug

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

      For comparison, 1.12.2 uses only 500 MB of RAM!

      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. Download the server jar of the version you want to test.
      3. Open the task manager of your operating system.
      4. Launch the server with the following JVM arguments (for 8GB of RAM):
        java -Xmx8G -Xms1024M -jar server.jar nogui
        
      5. Observe the evolution of the RAM used by the server in the task manager.
      6. 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 server 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-188163 which processes the client side.

        Attachments

        1. Server RAM Test 1.12.2.mp4
          968 kB
        2. Server RAM Test 1.13.2.mp4
          1.54 MB
        3. Server RAM Test 1.14.4.mp4
          1.88 MB
        4. Server RAM Test 1.15.2.mp4
          1.93 MB
        5. Server RAM Test 1.16 Pre-2.mp4
          2.14 MB
        6. Tuto 1.png
          Tuto 1.png
          43 kB
        7. Tuto 2.png
          Tuto 2.png
          30 kB

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              ZeNico13 [Helper] ZeNico13
              Votes:
              35 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated:
                CHK: