how to optimize my wordpress to support lots of visitors

  • Posted June 17, 2014

hi all

I created my website with wordpress with great effort and launched my post, I have a dropplet with 1GB of ram (centos 6.4), but many times I could not access my site, because it has fallen, then I had to restart the machine so that it can be solved.

I get about 100-200 visitors a day there are times when visitors are concentrated in 80 parallel visits, ie 80 users accessing at the same time, my vps has fallen 2 times, my question is: How can I prevent these falls or can properly manage these recuros?

I hope you can help me and thanks


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.

That isn’t too much of a load. A 1 GB droplet really should be able to handle that. Are you seeing any error messages when it crashes? Is there anything interesting in <code>/var/log/messages</code> ? We can give some general advice, but getting to the bottom of this exact issue would probably be best.

More generally, there is a chance MySQL is running out of memory. In order to give it some extra breathing room, you might want to add a swap file:

You may also consider moving to Nginx as it is more lightweight than Apache. Check out:

Setting up caching with something like Varnish is also a good step:

Less specific to your issue, one way to scale out is to add a separate database server: