By pcristian06
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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.