I tried looking all over and didn't see any posts related to this so I'd thought I might have better luck just posting here myself. I currently am running Minecraft on Windows 10 Java Edition. I have a custom built PC with random parts that can be relayed later if needed. However, the important part to note is that I have 32 GB of RAM.
My issue is whenever I log into my realm and start playing that my RAM will slowly begin to increase more and more as my playtime goes on until eventually my computer freezes, or crashes. I restart, play a single-player world of mine and no issues. I join back into the realm and again my RAM slowly increases. The issue appears to only be appearing in Minecraft, no other memory "leaks" or anything of this such has happened from any other games that I can recall and I don't know what to do.
Does anyone know what might be the issue/cause of this? I've looked all over, tried re-installing, and updating all of my drivers and nothing seems to fix the issue. Any/all help would be greatly appreciated.
P.S. The memory leak continues to happen even after I force-close Minecraft.