Question

RAM issue

  • Posted 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

Subscribe
Share

Submit an 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.

<pre>I think that my vps automatically turns in stand by mode when is idle</pre> <br> <br>That shouldn’t happen by default. Do you have any logs that show it happening?

I think that my vps automatically turns in stand by mode when is idle how can i see/configure the settings in centos 6 ?

I’m not sure what you’re referring to – what does <strong>What about standby when is idle ? </strong> mean?

Done , i will see if still gets me the out of memory error… <br>What about standby when is idle ? how can i deactivate that ? <br> <br>Sorry for my bad english

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.

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 ?