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

(RAM LEAK) Garbage Collector All Java Version Broke

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.20.4, 24w13a
    • None
    • Unconfirmed
    • (Unassigned)

      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. *This creates a RAM LEAK*

      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 *OF RAM*
      This bug doesn't effect just the current minecraft version but almost 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 versions

      Java 8u51 (bundled with the launcher itself for mc versions <= 1.12.2)
      Java 7*
      Java 17* (bundled with the launcher itself on latest release)
      Java 8*
      Effected Minecraft Versions

      Minecraft *

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

              Created:
              Updated:
              Resolved: