LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-02-2009, 02:25 PM   #1
godius
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Nginx + php-fpm Slow Response When Busy


Hello im running a quad core 8GB machine with fast scsi drives with 64bit centos 5.

Now on that site i run a site that get about 750.000 unique visitors, and the site uses ajax intensively. every pageview uses about 15 ajax http requests. I used to run my site on apache, but because of the insanely high load i decided to move to nginx.

I have setup nginx with php-fpm, and it is running quite good, only when it gets really busy (around 25 pageviews per second), i sometimes notice that i have to wait a few seconds before the server sends a response. This only happens when its busy, so i think ive hit some kind of limit in nginx. It is probably possible to resolve this by changing a certain value somewhere.

The server load is always low, around 1. Below i have posted some of the settings i have already modified.

Code:
nginx.conf
events {
    worker_connections  6000;
}
worker_processes  12;
sendfile            on;
tcp_nopush          on;
tcp_nodelay         on;
keepalive_timeout   10;
gzip            on;
gzip_comp_level 2;
gzip_proxied    any;
gzip_types    text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;

Code:
php-fpm.conf
<value name="max_children">3000</value>
<value name="StartServers">200</value>
<value name="MinSpareServers">600</value>
<value name="MaxSpareServers">2000</value>
<value name="request_terminate_timeout">10s</value>
before on apache my site used to get busier because it was able to handle up to 35 pageviews per second, now i never see it go over 25, because i think nginx can not handle more with my current setup.

Please advice how to tune/optimize/improve my settings.

Kind regards,

Godius
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tape "Device or Resource Busy" Same response always? WHY helptonewbie Linux - Newbie 8 04-18-2012 09:37 AM
X server slow response when connected to slow Wifi bluesmanu Linux - Software 0 04-09-2008 06:56 AM
Slow response robeadam Linux - General 6 09-13-2007 09:31 AM
[SOLVED] Q3: Slow network response mattz40 Debian 9 04-05-2005 09:07 AM
Slow response as ..... umok Linux - Newbie 4 07-11-2003 12:54 PM


All times are GMT -5. The time now is 06:59 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration