I got the same problem and I already have 2GB RAM.
I solved the problem by stopping the biggest program in the RAM.
In my case
systemctl stop mariadb