The bug
Minimizing the game whilst being in a singleplayer or multiplayer world causes the game process to start eating up RAM until it has reached full usage of the memory allocated to the JVM. This makes the game become very unresponsive, forcing the user to kill the process via Window's Task Manager. If the user reopens the game shortly after minimizing it, there is a chance that the game will clear up some memory and proceed as normal. Please note that this only happens if the game has loaded up a singleplayer/multiplayer world before; the memory usage does not increase if the game gets minimized in the main menu.
How to reproduce
Monitor the game process in Window's Task Manager (javaw.exe)
Join any singleplayer world / server
Press ESC on your keyboard to pause the game
Minimize the game
Watch how the process' private bytes increase over time
Video showing the bug in action on YouTube
Original description
I was playing minecraft in fullscreen and then I pressed escape to pause it and windows key to minimize it. Then I realized that minecraft would slowly use more and more RAM, up to 4.2GB (I allocated 3GB), When it reaches 4+GB it stops climbing then drops after 5 seconds to 500MB and then starts climbing again. When I try to bring it back to play it it takes up to 10 seconds to appear on my screen. After that everything works fine.
Linked issues
is duplicated by 1
Attachments
Comments 4
It happened a few times in 1.9.1-pre-1 but I wasn't able to replicate this (sometimes it would happen, sometimes it would not). It didn't happen in the recent versions of minecraft and I can't test this because my PC is not working. Youtube video link is invalid because I deleted it from my channel.
This is still an issue for me. I'm using version 1.11.2. Java goes from around 3GB of RAM (even though Minecraft is only allocated 1GB) to 6.6GB in 20-40 seconds. It stays at 6.6GB for 30 seconds and then the RAM usage quickly goes down to 3GB and after that it starts using a lot of RAM again. This happens continuously.
YouTube video link is invalid.