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

(RAM LEAK) Garbage Collector All Java Version Broke

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 1.20.4, 24w13a
    • None
    • Unconfirmed
    • Performance

      The Java Garbage Collector GC no longer works a recent windows 10 update broke it. Minecraft Uses unlimited amount of ram no matter how much you give it and continues until your computer is out of ram.

      steps to reproduce

      • Launch world all default settings
      • Open Task manager and not notice anything too ram yet
      • Open to Lan
      • Close World
      • Open World
      • Open to Lan
      • Look at task manager the GC(Garbage Collector) didn't work
      • Repeat Process 10x and watch it go to 3-5GB
      • If that isn't enough to do it sprint fly around in full screen for 30 minuets
      • If your on an Intel System or NVIDIA it may take longer to reproduce but it still does happen. AMD is the quickest way to get High and Fast Ram Leaks.

      According to legacy launcher developers this issue is caused by the GlobalRenderer display list having millions of entries and never clearing. The memory is inside of the DLL's (NATIVES) memory and doesn't show up in game's F3 mode as it's not in java's memory and it started happening around 2022-2023

      This bug doesn't effect just the current minecraft version but all minecraft java versions. It's actually a bug from windows that makes java's Garbage collector not work anymore. Manually calling the garbage collector with a mod the game freezes as expected but the ram still stays the same in task manager.

      It appears to be less in the latest release but still occurs I was able to reproduce latest release of minecraft with +1.7GB of ram more then java allocated and it stayed there. In older java or minecraft versions it was worse and would continue until your computer went out of memory

      Effected Java (Oracle & OpenJDK) versions On Windows 10

      • Java 8u51 (bundled with the launcher itself for mc versions <= 1.12.2)
      • Java 8*
      • Java 7*
      • Java 6 (64 bit) *
      • Java 17* (bundled with the launcher itself on latest release)

      Effected Minecraft Versions

      • Minecraft * Releases

      Was This ever fixed in the past?:

      • The only time this bug doesn't effect the game is if you are 1.12.2 and you went to the main menu (not fixed for in game) or you were on windows 7 with java 6, 7, or 8 and you were playing <= MC 1.12.2. If you are on MC 1.20.4 going to the main menu doesn't clear the ram leak nor does the in game garbage collector clear it

        1. 1.2.5.PNG
          1.2.5.PNG
          768 kB
        2. 1.20.4.PNG
          1.20.4.PNG
          596 kB
        3. Capture.PNG
          Capture.PNG
          560 kB

            Unassigned Unassigned
            jredfox jredfox
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: