I was facing the same issue.
I have Nvidia GTX 750 Ti graphics card. I suspected it is because of the missing drivers.
- Go to Software & Updates. Go to additional drivers tab and wait for the options to load.
- Chose Nvidia driver meta-package from nvidia-driver-304. Click apply changes and wait for the driver to install.
- You can also increase you swap space.
In Ubuntu 18.04 you can use the following steps to change swap
Turn off all swap processes
sudo swapoff -a
sudo dd if=/dev/zero of=/swapfile bs=1G count=8
if = input file of = output file bs = block size count = multiplier of
blocks
sudo mkswap /swapfile
sudo swapon /swapfile
grep SwapTotal /proc/meminfo
Then finally please turn off Hardware accelaration in Mozilla and Chrome. Sometimes these browsers eat up too much memory and hence crash.
In chrome, go to chrome settings at chrome://settings then go to Advanced. Deselect "use hardware acceleration when available".
Also go to chrome flags at chrome://flags and disable CPU Rasterization.
Alternatively you can use google-chrome --disable-gpu
to start chrome.
In Mozilla, go to Preferences, here go to Performance section. Deselect "Use recommended performace settings". Also deselect "Use hardware accelaration when available" and finally limit the content to 2.
Please restart and hopefully you are good to go.
top
or System Monitor to make certain there aren't any processes using up a lot of resources? Also, how many browser tabs do you typically keep open at a time? – Hee Jin May 16 '18 at 00:38https://askubuntu.com/questions/761706/ubuntu-15-10-and-16-04-keep-freezing-randomly?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
I'll see if that fixes it. Thanks for the suggestion.
Regarding resources, I don't think that's the problem. I only ever had at most two three tabs open since I've been mainly working on course work involving a virtual machine and sublime text. I thought it might have been due to the vm, but the last time it happened I only had FB opened and hadn't even touched the vm.
– alberbecois May 16 '18 at 00:58