PHP效能的分析

來源:互聯網
上載者:User

標籤:之間   xcache   cycle   recycle   zha   cal   fpm   分析   sdn   

1.系統方面:增加連接埠快速回收參數;
  net.ipv4.tcp_fin_timeout = 20
  net.ipv4.tcp_tw_reuse = 1
  net.ipv4.tcp_tw_recycle = 1
  net.ipv4.ip_local_port_range = 1024 65000
  
2.nginx: 1.增加worker進程數為50;2.增加單worker的最大串連數到8192;


3.PHP-FPM:將FPM的worker修改為靜態,並調整為固定worker,現在是50個worker;


4.redis:將php和redis之間的串連修改為長串連。


5.PHP:引入XCache擴充,但由於和QFrame架構有衝突,具體原因沒有找到,所以沒有採用,後續可以繼續研究。

                                                    注:轉載於zhangxinrun的部落格

PHP效能的分析

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.