I have a Ubuntu 18.04.2 on laptop HP Pavilion G6 with CPU AMD A8, 128 GB SSD, and 8GB RAM. I use it to work on web development daily with Firefox/Chromium, Atom, Skype and React.
It used to freeze almost daily. After days of probing, I figured the RAM was used up by the system. Because I couldn't add more RAM (8GB is the max size), I installed EarlyOOM to kill any excessive process. Guess what? It randomly kills either Atom, Skype, or the active browser (If I use Chromium, EarlyOOM will kill some of its tabs, but if I use Firefox, it will kill Atom).
This thing never happens if I play games. Should I setup a swapfile in the SSD or add a HDD to put the swap file in?