LNMP pressure test results PHP processing ability is low, increase pm.max_children after the same did not improve

Source: Internet
Author: User

LNMP architecture is now very common, read Yan Zhang Blog, kernel, php-fpm,nginx,fastcgi tuning, with autobench stress test, access to PHP page, starting from 100 concurrent, add 50 each time until 1000 concurrency, pm= static,pm.max_children=128, machine 8G memory, CPU is L5520, measured to the results of PHP's strongest processing capacity of up to 360m/s, the following has been continuing in about 350, and the 700+ of the Yan Zhang of the difference has been one times, according to the truth, Machine performance than he wrote the article when the machine performance is much better, should be able to high 700+, at least can be approached is, back, put Pm.max_children to 200, measured the result is the same, the test process to see the Iostat

See iowait occupancy rate is very bottom, wsec/s also less than 1m,io there is no bottleneck, use top to view CPU utilization

found that the CPU usage is also very low, the load is also low, the CPU is not a bottleneck, look at memory free-m, found memory and 1G (8g Memory, PM Open 200 processes about 4g,mysql with InnoDB, About 2.5 memory), memory is sufficient, and later, when viewed with Iftop,

See the network card peak reached 90 m above, and always around 90M, will not exceed hundred m, also will not drop, at this time suspected is NIC problem, is hundred m network card, with command Ethtool eth0

From the above can be seen, gigabit network card, but only in the hundred trillion networks, here you can see some situation, in the Pm.max_children put 128 to 200, the processing power of PHP is not the same as the time, it should be the problem of this network card if connected in the gigabit switch inside, PHP's processing power should soar, but how much can be achieved, I do not have environmental testing, can not be measured.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.