Ubuntu 14.04 crashes due to using too much memory