0

After some hours after playing Minecraft or another game in 16.10, all the RAM and swap gets filled by an invisible process, and the system freezes with HDD LED on, so it's writing something to the SSD, but nothing happens, and I need to force shutdown and then restart the computer.

To understand these issues, refer to the below screenshots.

pic 1

pic 2

Here are two screenshots without Chrome and Java, adding the values on the first picture, it's not 1.7GB. I think some hidden process causes this.

enter image description here

enter image description here

12
  • You don't have much RAM (2GB?) and play Minecraft. That explains everything. Try to use oracle java 8, Minecraft tends to create memory leaks with openjdk.
    – mondjunge
    Nov 3, 2016 at 10:04
  • It has 4GB, and 4GB swap, java version is: java version "1.8.0_111" Java(TM) SE Runtime Environment (build 1.8.0_111-b14) Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode) Under OS X and Windows, i had no problems like this... :/
    – UDPSend
    Nov 3, 2016 at 10:08
  • Your problem is a memory leak of some kind: RAM gets fuller and fuller until is is swapped to disk and also the swap partition is full, then your Desktop freezes cause you are out of memory and swap. Your goal should be to find out which program is creating a memory leak , why and fix it.
    – mondjunge
    Nov 3, 2016 at 10:15
  • Yes, i know this... But can't find it, see first picture, all of the processes RAM usage is not 8gb, java is 1.3gb, chrome is 600-700mb, and where is the more 6gb?
    – UDPSend
    Nov 3, 2016 at 10:19

1 Answer 1

1

Chrome can use a lot of RAM

When Chrome window has focus press Shift>+Esc to bring up process manager:

enter image description here

I've ententionally narrowed the Task name width to hide my gmail inbox name but you can see it is using over 400 MB of RAM. In this screen Chrome is using 1.7 GB of RAM simply surfing the net with 10 Tabs opened.

Your screen only shows the Chrome name but this screen shows each opened Tab name to track down the offender. In my case if I wanted to free up RAM I would close gamil.com.

The second large RAM user is Earth-Sunrise website that has a comment section. Some websites with comment sections can burn up lots of RAM, in testing over 1 GB per tab over a few hours. Simpy refreshing the Tab brings the usage back down to ~100 MB.

Display JAVA Memory Usage

The tool VisualVM will display Java memory usage and other information:

Java RAM Usage

You can download it from github: (VisualVM)

4
  • The problem is not chrome, it uses around 600-700mb, java is 1.3gb... I don't know what eaten the more 6gb ram + swap.
    – UDPSend
    Nov 3, 2016 at 10:23
  • @UDPSend You need VisualVM Java task manager which I've just added to the answer. Nov 3, 2016 at 10:31
  • Solved by switching to OpenJDK.
    – UDPSend
    Nov 4, 2016 at 8:05
  • Glad to hear that pothole on your road to happy computing has been filled. :) Nov 4, 2016 at 12:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .