Report this

What is the reason for this report?

RAM issue

Posted on September 14, 2013

My droplet keeps getting out of memory , i vahe the 2gb vps , my website dosen’t gets so much traffic i don’t know why this happens maybe i need a cron job to free the ram i currently have 2 phpbb’s and 1 ipb hosted with zpanel … Can someone help me with a solution? i’m not sa advanced in linux. The OS is CentOS 6



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

My website goes down , the droplet is on but tells me someting like: Out of memory… and i must reboot the droplet in order to fix the issue

What do you mean by <code>My droplet keeps getting out of memory</code>? Do programs keep crashing ?

Try adding swap: <br> <br><pre> <br>echo “vm.swappiness=0” | sudo tee -a /etc/sysctl.cnf <br>sudo sysctl -p <br>sudo dd if=/dev/zero of=/swapfile bs=1024 count=256k <br>sudo mkswap /swapfile <br>sudo chown root:root /swapfile <br>sudo chmod 0600 /swapfile <br>sudo swapon /swapfile <br>echo “/swapfile none swap sw 0 0” | sudo tee -a /etc/fstab <br></pre> <br> <br>That should fix the running out of memory issues.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.