I’ve created a swapfile but zero swap is being used.
$ free -m: total used free shared buffers cached Mem: 490 478 12 0 3 412 -/+ buffers/cache: 62 428 Swap: 511 0 511
$ swapon -s Filename Type Size Used Priority /swapfile file 524284 0 -1
$ vim /etc/fstab:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=b96601ba-7d51-4c5f-bfe2-63815708aabd / ext4 noatime,errors=remount-ro 0 1 /swapfile none swap sw 0 0
After the (sudo /home/deploy/.rbenv/shims/passenger-install-nginx-module) command, this error shows up: Your compiler failed with the exit status 4. This probably means that it ran out of memory. To solve this problem, try increasing your swap space: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
What is going wrong? The swap file is configured and available, but isn’t used by the installer of passenger-nginx.
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!
Wow thank you! But what does this command exactly and why it isn’t named in this tutorial https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04 ?
@mathijskingma: The article sets vm.swappiness to 0 while the one I posted above sets it to 10.
Try running <code>sudo sysctl vm.swappiness=10</code>—does that fix it?
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.