Ubuntu 14.04 crashes due to using too much memory
- 
 I am running Ubuntu 14.04 and my server started crashing every few hours due to memory. I increased the memory and everything was fine for awhile, but now it is crashing again. How can i find out what is hogging the memory? 
- 
 topShould give you all the details you need live. 
- 
 @DustinB3403 or better yet htop
- 
 @DustinB3403 said in Ubuntu 14.04 crashes due to using too much memory: topShould give you all the details you need live. Right now it is using very little memory (2%) . I just rebooted so I will check when there is an issue again. 
- 
 @IRJ Why are you not running Ubuntu 16.04? Also check sysstat. 
- 
 @aaronstuder htop might not be installed on his system. I know it's not on me debian system. 
- 
 apt-get -y install htop
- 
 What does SAR say happens just before the crash? top with the M command does a great job of showing memory hogs. 
- 
 Is this is VPS? 
- 
 @aaronstuder said in Ubuntu 14.04 crashes due to using too much memory: @IRJ Why are you not running Ubuntu 16.04? Also check sysstat. He hasn't had all that much time to update. 
- 
 @aaronstuder Of course I know how to install it, I was just saying not everyone has it installed. topis the stock command included with every debian distro. 
- 
 @DustinB3403 Does top have pretty colors and bar graphs? lol 
- 
 @aaronstuder said in Ubuntu 14.04 crashes due to using too much memory: @DustinB3403 Does top have pretty colors and bar graphs? lol Nope, just the info that we need  
- 
 @scottalanmiller I am a sucker for pretty things.... 
- 
 @IRJ said in Ubuntu 14.04 crashes due to using too much memory: @DustinB3403 said in Ubuntu 14.04 crashes due to using too much memory: topShould give you all the details you need live. Right now it is using very little memory (2%) . I just rebooted so I will check when there is an issue again. This is why you need sysstat, it has history. 
- 
 
- 
 As a learning experience VIRT is the "used amount" of memory and %MEM is obviously the "amount of total" memory.  
- 
 Here's an older site explaining the top command if you need further details. 
- 
 @IRJ said in Ubuntu 14.04 crashes due to using too much memory: Right now it is using very little memory (2%) . I just rebooted so I will check when there is an issue again. That's why I was asking for the sar output, it will show what was going on leading up to the crash. 
- 
 @DustinB3403 said in Ubuntu 14.04 crashes due to using too much memory: As a learning experience VIRT is the "used amount" of memory and %MEM is obviously the "amount of total" memory. But hit M to reorder the display by memory used, rather than by CPU used. 


