it is server RAM issue , if you have any other CMS/app installed on server ,stop them and check if discourse is working fine or not , if it is working fine upgrade to more memory or delete multiple apps to free memory
you can memory usage in percentage
$ ps -o pid,user,%mem,command ax | sort -b -k3 -r