An old question, but I would like to say that before you try to add more physical memory or increase vm memory, just try to add more swap.
I did this with 4 servers (ubuntu and centos) with a low bar (700 MB total, 15 MB total) and now it works fine.
Edgar carvalho
source share