Report this

What is the reason for this report?

How to increase SWAP file size in Ubuntu Linux 14.04 ?

Posted on July 9, 2015

I have a droplet with 4 GB Memory with 8 GB SWAP file & I am getting about 23000 views on my blog , so my loading time of site is taking many seconds.

Please can someone tell me how to increase SWAP file size ?

Also please tell me how to speed up my wordpress blog (I cache with W3 Super Cache) …



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.

If you created your swap file following our tutorial you can simply do the following to disable you current swap file:

swapoff /swapfile

Then create a new one using the same procedure. There should not be any need to update your fstab.

If you are seeing a lot of requests and apache is taking a while to respond you may want to check if you have KeepAlive turned on. If you do, this will keep a connection open for a current client. If this is on and your MaxClients setting is too low a new request will wait for one of the kept-alive connections to time out before responding. If this happens you will see slow first response times but actual file transfers and php processing still running normally.

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.