Question

wordpress nginx site very slow -- php error -- cpu high

Few hours ago I got a serious performance problem on my company droplet and i can’t figure out what’s the cause. this is how bad it looks: http://i62.tinypic.com/bkex1.jpg

Both websites are displaying this message: “The page you are looking for is temporarily unavailable. Please try again later.”

I tried everything. I tried to deactivated al the plugins for the 2 websites we have (miasa.de and pro.miasa.de), but the CPU was still over 50%. I also updated all the plugins and Wordpress version, but everything still rocketing over 90%

The issue happened few ours after i was trying to install a SSL using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-create-a-ssl-certificate-on-nginx-for-ubuntu-12-04 Although, I didn’t finish all the process. I have stopped on step five – I didn’t set up the virtual hosts.

I hope you guys can help me through here.

This are the log files i got today from the var/log/nginx: https://drive.google.com/file/d/0B5PDpzeSyKU5bDB1RFVfYm5uT2M/edit?usp=sharing

on the error log what we see is a repetition of this message:

2014/08/15 11:41:51 [error] 18206#0: *5395 connect() to unix:/var/run/php5-fpm.sock failed (11: Resource temporarily unavailable) while connecting to upstream, client: 41.142.99.109, server: miasa.de, request: "POST /xmlrpc.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "miasa.de"

I thank you for your time!

(i also have opened a ticket because the situation is quite urgent – i will update both sides with the responses i might get. )


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.

Hi,

From my experience - it looks like you`re under attack to /xmlrpc.php (pingback/trackback spam), every access to this file have high CPU consumption . You can easily check this by renaming this file from domain root or limiting access to this file.

regards, VB

trying to check what is going with nginx i did:

  1. i clean archived the old log files on my decktop

  2. sudo nginx -s quit

  3. then: sudo service nginx restart

  4. then i got this new log: https://drive.google.com/file/d/0B5PDpzeSyKU5RWhsa3JUMHNRSWM/edit?usp=sharing