0

I am using Java version on ubuntu 20.04 and have an issue with the RAM usage.

I have tested other Minecraft versions, Java versions, launcher versions, and I've even changed the assigned RAM but the problem persists.

I start playing the game and nearly at 45 minutes the PC will crash. This takes a shorter amount of time if I rise the chunk load size or spawn a bunch of mobs.

What was happening is than as long as Minecraft runs, the memory usage will rise until system crashes. I have checked the Java RAM usage but it does not show more than 1GB of used RAM, no other process is filling the RAM, yet at the general view the "available RAM" keeps decreasing.

Weirdly after closing Minecraft this consumed RAM will not be freed and will be consuming system RAM until reboot of the PC. I figured out that I can recover that "consumed RAM" by executing this after I close the game:

             echo 1 > /proc/sys/vm/drop_caches

Not exactly sure what's happening or if there is a way to fix it. Has anyone else experienced the same problem and uncovered a solution?

5
  • You could maybe install a third-party application like a RAM limiter to set a limit on the RAM Minecraft could use May 2 at 16:26
  • this sounds like an OS issue (or maybe Java) rather than a Minecraft one
    – Esther
    May 2 at 17:56
  • ChocolateChara already try to limit the RAM, but the options are limited to "user group" or "process id", the RAM usage than is bothering me it does not belong to a process neither a user.
    – Jobesmor
    May 2 at 17:59
  • I just did some research, this is the OS using RAM for its page cache. It is supposed to "give back" some of that RAM when other programs need it, not sure why it isn't doing that. When you open resource manager and look at the RAM, what is using a ton of it?
    – Esther
    May 2 at 18:01
  • Java uses 800-900MB all the other running process uses a total of 750 mb approximate, yet total RAM usage is nearly at 100%.
    – Jobesmor
    May 2 at 20:30

0

You must log in to answer this question.

Browse other questions tagged .