我生产环境下的两台Nginx + PHP5(FastCGI)服务器,跑多个一般复杂的纯PHP动态程序,从Nginx的日志可以统计出,单台Nginx + PHP5(FastCGI)服务器跑PHP动态程序的处理能力已经超过“700次请求/秒”,相当于每天可以承受6000万(700*60*60*24=60480000)的访问量:

  服务器①:DELL PowerEdge 1950(两颗 Intel(R) Xeon(R) 双核CPU 5120 @ 1.86GHz,4GB内存)

  服务器②:DELL PowerEdge 1950(一颗 Intel(R) Xeon(R) 双核CPU 5140 @ 2.33GHz,4GB内存)

  Web服务器:CentOS Linux 4.4 + Nginx 0.5.35 + PHP 5.2.6RC2(300 FastCGI Procees, unix-domain socket, with XCache)

  PHP程序内容:大量Memcached读写、少量MySQL读操作、大量文件队列写操作,然后计算,生成供<script type="text/javascript" src="http://www.domain.com/abc.php?u=1"></script>方式调用的JS代码或XML数据。

  网卡流量:1.5M~3M/秒

  请求数统计方式:从Nginx访问日志中,统计每分钟的第15秒共有多少条日志记录。
引用
grep "25/Mar/2008:15:01:15" /data1/logs/nginx.log | wc -l


  点击在新窗口中浏览此图片

  服务器的系统负载也不算高:

  点击在新窗口中浏览此图片

  总结:
  1、Nginx的处理能力超强,这块不是瓶颈。影响动态程序处理能力的因素主要在于PHP(FastCGI)。PHP(FastCGI)模式适用于执行时间较短的PHP程序,一般复杂的PHP程序执行时间应该在100ms以内,例如我的博客首页执行时间为38ms左右。假设一个PHP程序的执行时间为100ms,那么一个PHP(FastCGI)进程每秒可以处理完毕10个请求,300个FastCGI进程理论上每秒可以处理3000个请求。但是,在生产环境下,还将受到内存、系统负载等多方面的影响,例如300个PHP(FastCGI)进程需要占用2.4GB左右的内存,每秒处理超过1000个请求时,系统负载会飚升到100以上。因此,FastCGI的进程不是越多越好,而是够用就好。

  2、使用PHP的XCache、APC等加速模块会提供速度10倍左右,降低系统负载50倍以上。

  3、修改了spawn-fcgi,使它能够支持250个以上的FastCGI进程。

  4、如果PHP直接对MySQL进行大量读写操作,速度是达不到“700 request/sec”的,PHP与MySQL之间需要一个中间层,这是关键的技术。

  5、CPU的数量(多核算多个CPU,cat /proc/cpuinfo |grep -c processor)越多,系统负载越低,每秒能处理的请求数也越多。

  6、使用PHP 5.2.6RC2,因为它修正了PHP 5.2.5的“zend_mm_heap corrupted”错误BUG。PHP 5.2.5(FastCGI)在高并发请求情况下,经常会出现该错误。

  7、有空我将写一篇针对CentOS Linux环境Nginx + PHP5(FastCGI)安装、配置的最新博文。

Tags: , , , , , ,



技术大类 » Web服务器 | 评论(84) | 引用(0) | 阅读(130294)
chanchal
2021-6-18 21:21
xfinity.com/authorize and be able to troubleshoot your issue.You can pay your credit card or your bills through the Xfinity My Account app and customize your device issue, WiFi network name and password by visiting https://sites.google.com/site/awwwxfinitycomauthorize/ .To get help for any kind of problem, you can use this Xfinity.com/authorize.Once you successfully purchase Ms. Office Equipment, you will get an https://sites.google.com/site/officedownloadd/ in which you must enter the key. Download and install MS 365 in your PC with the help of the website given by us and provide the best office.com/setup for your office. To install the office.com/setup ,click on the link given by us.Canon ijsetup CD is not the well-suited https://sites.google.com/a/canon.com-ijsetup.net/canonprinterijsetup/ technique to use setup installation for longer.The Canon printer enhances scan functionality, and includes a robust security feature set. Using a Canon printer service phone, you can get a full installation of the https://sites.google.com/a/canon.com-ijsetup.net/canon-printerdrivers/ and go to the installed Canon printer to download the https://sites.google.com/a/canon.com-ijsetup.net/canonprintersetup/.
chanchal
2021-6-18 21:23
Once the device is found, you can add roku paid channel or roku channel from https://sites.google.com/a/plus-roku.com/createrokuaccount/ with activation code store. Connected to your TV screen https://sites.google.com/a/plus-roku.com/6digitsrokucomlink/.Login to your TurboTax CD/Download account. Access your https://sites.google.com/view/activateturbotax/ order history and TurboTax desktop software downloads, unlocks, and tax documents.Have you also received an American Express card and looking for a way to confirm it? So keep going through this article as we are going to discuss all possible ways to confirm an American Express card. But before moving on to steps make sure to collect some necessary information that you require while confirming your https://sites.google.com/view/american-expresscard/.Webroot Antivirus is the fastest and easiest software to download, install and run.https://sites.google.com/a/webrootcom-safe.net/webroot-key-code/ In addition, it automatically updates without slowing down your system. Because of which you always get the most protection. So we recommend you to download Webroot Antivirus. Webroot Antivirus detects online threats and blocks them quickly.
chanchal
2021-6-18 21:24
Shop your local Walmart store online anytime, anywhere. You can even use the Walmart online shopping app and start shopping now. Then, choose a convenient pickup or delivery time. We'll do the shopping and experts will pick the best quality items, or your money back.For more information, visit https://sites.google.com/view/walmartonlineshopping/ our website.The actions recorded can vary from mouse tracking to what documents or programs are open and closed to launching programs.https://sites.google.com/view/tiny-task/ device is helpful to users who want to automate their repetitive tasks and want to easily access them right away rather than performing repeated actionsoffice it the pile of office https://sites.google.com/a/25activate.com/enter/office-comsetup gadgets to make your working smooth and effective.visit: to downloaded in your PC with the smart help.Endeavor which is amazingly https://sites.google.com/site/setupwwwofficecomsetup/ easy to present, download and recoup.Usage of it is moreover fundamental and the customer can pick up capability with the use of it adequately. Online Support&help elective is in like manner open in all application which gives a minute guideline.Microsoft Office is an application https://sites.google.com/a/mfoffice.com/office-comsetup/.It is used in most of the businesses and organizations Install office setup on your Pc's to get best advantage of it. mostly used tasks are ms-word, Ms-excel and Ms-powerpoint.
chanchal
2021-6-18 21:25
The need for a reliable antivirus like Norton Enrollment is increasing, you can download it by visiting the website https://sites.google.com/site/nortoncomnortoncomsetup/.Not only companies as a measure of data security, but everyone is now relying on antivirus programs that can be found on the  https://sites.google.com/view/comnortonsetupp/ with product key page. If you have any problem you can visit our website https://sites.google.com/view/norton-com-n/ and get help.Mcafee antivirus acts as a shield of the device. It protects against viruses, malware, online threats etc. You can download, install and activate https://sites.google.com/site/urlwwwmcafeecomactivate/ with activation code. mcafee antivirus provides protection from viruses, hackers, spyware and more harmful websites. If you want to protect your devices against harmful data, download mcafee antivirus by visiting the https://sites.google.com/a/mcafee25.com/mca4ee/ website.
chanchal
2021-6-18 21:30
To install, activate and redeem the Mcafee card on your PC, you must have a product key or https://sites.google.com/site/mcafeeactivatemcafeeactivate/ activation code. If you have the code,Webroot Antivirus is the fastest and easiest software to download, install and run.https://sites.google.com/a/webrootcom-safe.net/geeksquadwebrootaccount/ In addition, it automatically updates without slowing down your system. Because of which you always get the most protection. So we recommend you to download Webroot Antivirus. Webroot Antivirus detects online threats and blocks them quickly.Webroot Antivirus is the fastest and easiest software to download, install and run.https://sites.google.com/site/webrootcomsafewebrootwebroot/ In addition, it automatically updates without slowing down your system. Because of which you always get the most protection. So we recommend you to download Webroot Antivirus. Webroot Antivirus detects online threats and blocks them quickly. You can install https://sites.google.com/site/20webrootsafe/ by visiting our website. And you can also download Webrot from windows 10 install webroot with key code . With Webrot's product you will be able to fully protect yourself online and offline For more information visit https://sites.google.com/a/webrootcom-safe.net/webroot-safe/ our website.
shinu
2021-6-19 15:19
Here is the link you need to visit:    https://sites.google.com/a/25activate.com/enter/  office it the store of office gadgets to make your  working smooth and effective.visit: www.    https://sites.google.com/a/25activate.com/enter/ofice-setup  to downloaded in your PC with the savvy help. office setup is the best programming  which is broadly utilized in globe .    https://sites.google.com/a/25activate.com/enter/blog   It is a shocking association that causes you release your best contemplations, complete things, and stay related on the go.    https://sites.google.com/a/25activate.com/totalprotection/   for more subtleties visit:  today.     https://sites.google.com/site/officedownloadd/  office it the heap of office mechanical assemblies   to make your working smooth and effective.Get it downloaded in your PC with the speedy assistance visit here for more nuances.     https://sites.google.com/a/25activate.com/enter/office-comsetup  Try which is incredibly simple to exhibit,   download and recover.     https://sites.google.com/site/setupwwwofficecomsetup/  Use of it is in addition principal and the client can get capacity with the utilization of it enough. Online Support&help elective is in like way open in all application which gives a moment rule.    https://sites.google.com/a/mfoffice.com/office-comsetup/  office it the heap of office devices to make your  working smooth and effective.visit:  setup to downloaded in your PC with the savvy help.
shinu
2021-6-19 15:19
McAfee Total Protection provides Windows, Mac and mobile virus protection,    ttps://sites.google.com/a/25activate.com/totalprotection/blog   spam filtering capabilities, the ability to securely encrypt sensitive files and much, much more.    https://sites.google.com/site/urlwwwmcafeecomactivate/   Connect five or ten devices and protect what. McAfee Antivirus Plus includes a    https://sites.google.com/a/mcafee25.com/mca4ee/  variety of tools that can optimize your PC’s performance, keep it clean of cookies and temporary files and even pause annoying autoplay videos so you can enjoy a smoother experience on your PC.    https://sites.google.com/site/mcafeeactivatemcafeeactivate/   Software activation code along with download instructions will be delivered in an e-mail. This code only works in.
shinu
2021-6-19 15:19
Norton Security Premium gives  all what Norton Security does, in addition to it backs up the individual records,    https://sites.google.com/site/nortoncomnortoncomsetup/   photographs, recordings and different recollections on your PC.Norton Security gives you the best  of Norton for the numerous ways you interface.    https://sites.google.com/view/comnortonsetupp/   With a solitary basic setup, you get complete insurance that is made to verify your preferred gadgets—PCs, Macs®, cell phones and tablets—so you can be sheltered in any case and any place you associate.    https://sites.google.com/view/norton-com-n/   Norton security software is used broadly and it  provides tha simplest ways to useand it is the most effective protection for yur pc's and computers.   Install it in your PC's and stay free from viruses.Do visit for more details. All you have to do  is  to  activate  your Amazon Prime Video on    https://sites.google.com/amazoncom-mytv.com/signin/home/   using the activation code you retrieve ...amazon Payment Products.    https://sites.google.com/site/amazoncommytvactivationkey/   Amazon  Rewards Visa Signature Cards; Amazon.com Store Card; Amazon Business Card;   Amazon Business Line of Credit; Shop with Points;
shinu
2021-6-19 15:19
Webroot safe is one of the best antivirus software which provides security from malware and threats.    https://sites.google.com/a/webrootcom-safe.net/geeksquadwebrootaccount/  offers full security for your personal information and banking details    https://sites.google.com/site/webrootcomsafewebrootwebroot/   is the cheapest antivirus software.  Webroot product key is an alpha-numeric code of 20 digits, that can help users to trigger their webroot antivirus program.Get protection after downloading, installing and activating with key code through    https://sites.google.com/site/20webrootsafe/   if you buy the product online then you will receive the Keycode on your registered email i'd that you have provided during purchase.Click    https://sites.google.com/a/webrootcom-safe.net/webroot-safe/  to open Webroot safe Console. Webroot AntiVirus keeps watch on obscure projects until its cerebrum in the cloud   goes to a judgment.     https://sites.google.com/a/webrootcom-safe.net/webroot-key-code/  The small nearby program clears out the assailant and turns around its activities. It's an exceptionally unordinary framework, however testing demonstrates that it carries out the responsibility, and does it well.
shinu
2021-6-19 15:19
If your computer does not have the CD-ROM drive or you do not have the Setup CD, follow the steps given below. Visit    https://sites.google.com/a/canon.com-ijsetup.net/canonprinterijsetup/    Click Set Up. Either type in the model name of your printer,    https://sites.google.com/a/canon.com-ijsetup.net/canon-printerdrivers/  or click the first two letters shown under First Letters.Canon printer that can be downloaded via    https://sites.google.com/a/canon.com-ijsetup.net/canonprintersetup/  page is the best wireless printer that you can connect to your device and print data smoothly. Canon ijsetup CD is not the well-suited technique to use    https://sites.google.com/all-printer-driver.com/ij-scan-utility/canon-ij-scan-utility-windows-10   setup installation for longer. One can also install from anther origin if your device is having issues in the online installation or any other. Roku gives the least complex approach to stream excitement   to your TV.     https://sites.google.com/a/plus-roku.com/createrokuaccount/  With a large number of accessible channels visit     https://sites.google.com/a/plus-roku.com/6digitsrokucomlink/  here for more subtleties.Roku provides the simplest way to  stream entertainment to your TV.     https://sites.google.com/view/roku-linkactivationcode   With thousands of available channels visit here for more details.  Roku is a streaming device that helps you watch thousands of paid & free video content on your TV screen via  .    https://sites.google.com/site/linkrokucomrokurokucomlink/   Download the setup from   and enter roku activation code.
shinu
2021-6-19 15:19
Hulu Plus on your gadget, either  utilize the on-screen console to enter your Hulu sign in data or go to   https://sites.google.com/site/huluactivateyouraccoun/   and enter the gadget initiation code. Both of these strategies will enable you to utilize Hulu on any Hulu-upheld gadget.    https://sites.google.com/site/activateplushulucomactivate/  To activate Hulu Plus on your gadget, either   utilize the on-screen console to enter your Hulu sign in data or go to    https://sites.google.com/site/huluactivatekeycode/  and enter the gadget initiation code. Both of these strategies will enable you to utilize Hulu on any Hulu-upheld gadget.    https://sites.google.com/barenot.com/hulu/   Would you like to set up hulu antivirus in   your PC?... at that point click here for more subtleties.AVG Antivirus can be installed fairly easily and can be installed by visiting    https://sites.google.com/view/avgcodeactivate   It facilitates the custom scanning method used by the system, along with real-time security.  Avg is a well- known name in the field of virus protection.     https://sites.google.com/view/avg0com0retail/  The reason for which this name is common among all end users is its free antivirus and malware protection.It not only sounds    https://sites.google.com/site/avg25digitcodeavgretail/   free but it provides a lot more with no money. It scans for virus and malware. AVG is a known name among the users for providing the best security features against any malware. It provides online security, web security, offline security, family security and many other features to its users.     https://sites.google.com/site/avgcomretailretailcomavg/  For AVG Activate, Download & complete installation online to get rid of harmful viruses.
shinu
2021-6-19 15:20
Disney, one among the popular channel is now available on your streaming media players.     https://sites.google.com/site/disneynowcomactivate  The channel provides you access to Disney shows like Jessie, Phineas, Maddie, Austin and a few more at    https://sites.google.com/view/disneynow-com-activate/ . Disney Now is compatible with multiple devices including Android, iOS, Kindle, Roku, and Apple TV.     https://sites.google.com/a/barenot.com/disneynowcomactivate  You can also watch online using a supported web browser like Chrome, Firefox, or Brave.    https://sites.google.com/view/disneynowcom-activate/   - Disney Now has got some great popular shows on it which makes it one of the most trending streaming networks nowadays.Here’s How to Use    https://sites.google.com/view/activate-disneynow/  with your Disney+ Account Disney Plus is one of the most popular streaming services in the world right now.    https://sites.google.com/view/disneyplus-combegin/  With the entire catalogue of Disney classics available, plus new favorites like Hamilton and exclusives like Muppets Now, it’s not hard to see why.    https://sites.google.com/site/enterdisneyactivationcode/]DisneyPlus.com/Begin[/url]  offers a collection of world favorite movies, if you    https://sites.google.com/site/howtoactivatedisneychannel/   visit the Disney Plus Begin website you will see top movie favorites. Disney has global distribution agreements with apple google Microsoft, Roku, Sony,    https://sites.google.com/view/disneypluscombegin/   Amazon, Samsung, and LG Having distribution agreements with these popular manufacturers of mobile media devices and smart TV's allows users to connect with    https://sites.google.com/view/disneyplus-com-begin/  in a variety of way.
shinu
2021-6-19 15:20
Xfinity is a platform which will keep you entertained and  offers HD content at a very exciting price.    https://sites.google.com/view/xfinitycomauthorizenow/  Here you can stream any content online.Xfinity. Let's activate your device.    https://sites.google.com/site/awwwxfinitycomauthorize/   Enter your activation code: Access  on Roku and smart TV's will be available once your Xfinity products have been set up in your home. Go to    https://sites.google.com/view/activateturbotax/   to sign in or create an account,   and then enter your activation code (even if you've already started your taxes for tax year 2020, you'll still need to activate the code). Select Continue and then select your state. Steps to be followed: · Open the web browser on your lp or Desktop.     https://sites.google.com/view/american-expresscard/   Visit for the official website of AmericanExpress/CreditCard or click on the official website.Shop your local Walmart store online anytime, anywhere. You can even use the    https://sites.google.com/view/walmartonlineshopping/   app and start shopping now. Then, choose a convenient pickup or delivery time. We'll do the shopping and experts will pick the best quality items, or your money back.
shinu
2021-6-19 15:20
TinyTask is a utility software created by Vista Software. It's incredibly helpful, and what's better is that it's completely free!     https://sites.google.com/view/tiny-task/  It allows users quick and easy access to automating playback and recording. Prior to investing in a managed portfolio,     https://sites.google.com/view/etradeloginnow/   E*TRADE Capital Management will obtain important information about your financial situation and risk tolerances and provide you with a detailed investment proposal,     https://sites.google.com/view/etradeloginnow/etrade-login/  investment advisory agreement, and wrap fee programs brochure.    https://sites.google.com/all-printer-driver.com/epson-printer-drivers/   is the link between your Computer and the award-winning Epson Printers. It enables your Computer to command and control these robust printing machines. To download Brother printer drivers, you can download it at the official brother printer site that is    https://sites.google.com/a/all-printer-driver.com/brother/  visit here.
shinu
2021-6-19 15:20
HGTV is an American TV station, along with the complete type is Home and Garden Television.     https://sites.google.com/view/watchhgtv-com-activate/  It flows contents mainly associated with appliances, modular kitchen, and garden materials.  Not having enough cash in your    https://sites.google.com/view/paypalc0mlogin/  balance can lead to late payments or prevent you from making quick transactions to other accounts. Many people get addicted to    https://sites.google.com/view/wetvcomactivate/  Also, not everyone can watch We TV on a TV screen due to busy several technical reasons, so they prefer to install We TV on various devices after signing up and activating in TV provider. Open Google Play Store in your smart TV. Install the Bravo TV program. Open the Bravo TV program. Copy the activation code. Go to    https://sites.google.com/view/bravo-tv-com-link/   from web browser and enter the activation code. You are ready to start streaming.     https://sites.google.com/view/historycom-activate/  At that point you should experience the Activation cycle with your TV makers’ membership appeared on the screen. When the setup has succeeded, the PC or any gadget would now be able to be streamed on the web.
shinu
2021-6-19 15:20
Open your smart TV and Launch the TDS app. Note down your Tbs activation code appear on TV screen. Go to    https://sites.google.com/view/tbs-activate/  on web browser. Choose the android smart TV and enter the confirmation code. Once you click on the submit button. You can Install and Activate ESPN on Roku With the new    https://sites.google.com/barenot.com/espn-com-activate  option. This guide will show you a step-by-step guide on how to add ESPN to your Roku channel list and activate it so that you can follow all ESPN broadcasts and sporting events. NBC stands for National Broadcasting Company, and it is one of the best famous business broadcast TV networks in the US.     https://sites.google.com/barenot.com/nbc-com-activate/  You Can Activate NBC on your Roku & Amazon Firestick by visiting nbc.com/activate. ESET is a Slovakian multinational organization known worldwide for providing top-class antivirus. ESET software is the best protection against malware, Trojans, and spyware. You need to visit    https://sites.google.com/view/esetcom-usactivate/   to get ESET software.
komal Email
2021-8-28 16:36
Download the McAfee antivirus Mcafee.com/activate key to protect your device from being spoiled by the harmful viruses as it starts finding the way to remove them from the device as soon as possible.If you have code, you enter mcafee activation code and if you have any problems redeeming your activation code, you can contact our team through this websiteMcafee.com/activate and get the information Can. For more information, you can visit our website mcafee.com/activate and enjoy.
komal Email
2021-8-28 16:37
Select the office product you want to download and install on the device. Go to the office.com/setup option. To upgrade Office, press on the products of office.com/setupand start downloading and installing Office products on the device.log in and enter office 25 digit product key to activate your office product. if you are new user then you need to create a office account to get more benefits of office.com/setup subscription.
komal Email
2021-8-28 16:37
Roku Streaming players are an increasingly advantageous roku.com/link and financially savvy approach to sit in front of the TV. Simply plug it into your TV, associate with the web, set up a Roku record, and start spilling your top choices. Roku gadgets are easy to set-up and simple to-utilize. roku.com/linkThey accompany a straightforward remote, and incredible highlights like Roku Search which makes it easy to discover what you need to watch.                                roku.com/link                                roku.com/link
komal Email
2021-8-28 16:38
Webroot Secure Anywhere Antivirus is a powerful antivirus, designed to fight malaria and other threats. You can protect your computer, PC, and other devices from malware, viruses, spyware, etc.  You can download, install and install webroot via webroot.com/safe . To install Webroot go to webroot.com/safe. If you do not have an account, go to Find My Webroot Account and create an account. If you want to know more about it, then you can visit the webroot.com/safe website.                                webroot.com/safe
分页: 4/5 第一页 上页 1 2 3 4 5 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]