Is the number of pm. maxchildren of php-fpm directly related to concurrency?

Source: Internet
Author: User
Is the number of pm. maxchildren of php-fpm directly related to concurrency? Thank you for your direct connection between the number of pm. max children and concurrency capabilities of php-fpm? Thank you!

Reply: Is there a direct connection between the number of pm. max children and the concurrency of php-fpm? Thank you!

Short answer:
Pm. max_children = maximum concurrency

Detailed answer:
Pm. max_children indicates the maximum number of sub-processes that php-fpm can start. Because php-fpm is a multi-process single-thread synchronization mode, that is, a sub-process can process at most one request at the same time, so the number of sub-processes is equal to the maximum number of concurrent processes.

The number of processes is generally limited by the same memory as nginx. it is the most reasonable to calculate this value based on the memory. when the number of processes reaches a certain level, it may have to test other hardware configurations, such as I/O! So the answer is, there must be an impact.

Yes, I have seen it before when I checked the Nginx high concurrency configuration.

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.