Reply
 
Thread Tools
Old 26-06-2017, 03:31 AM   #1   [permalink]
reddymk
Junior Member
 
Join Date: 25 Jun 2017
Posts: 42
Help troubleshooting Nginx + Php-Fpm Set up , High CPU usage

Researched this issue many times and now need help understanding some diagnostics. Basically switched a server over from Apache + Php regular to Nginx + php-fpm . The problem is after a small increase in users Nginx starts encountering 503 and 502 errors. The main error we see in the log is "Connection reset by peer". I ran iostat and top commands sorted by CPU usage and need help understanding if these are normal.
We stress tested with Apache Jmeter and as you can see in the top graphic many child processes get created with about 30 - 40 % cpu. I can't imagine that being good. Also when running iostat the avg-cpu %user column jumps to the 90th percentile . I can't imagine that being good either. The stress test we did was 100 users in 60 seconds which is the kind of activity this site gets.
I imagine this is a php script causing this problem , particularly wordpress. Does anyone have suggestions where to begin debugging this problem? So far we have tried increasing the buffer size, increasing the timeouts in php and nginx, but nothing has worked.
Click image for larger version.

Name: apache-jmeter-php-fpm.png
Views: 9
Size: 41.0 KB
ID: 36557Click image for larger version.

Name: iostat-stress-test.png
Views: 4
Size: 34.0 KB
ID: 36558
__________________
Regards,
Mahendar Reddy
Medha Hosting
Windows VPS & Linux VPS Hosting
reddymk is offline   Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hi Poison is here ready to spout venom from the wastes Poison Introductions 8 21-07-2016 10:44 AM


New To Site? Need Help?

All times are GMT -4. The time now is 12:15 AM.


Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.