Question

How to increase SWAP file size in Ubuntu Linux 14.04 ?

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) …


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.