Is there a direct connection between the number of Pm.max children and the concurrency capability of PHP-FPM?

Source: Internet
Author: User

Is there a direct connection between the number of Pm.max children and the concurrency capability of PHP-FPM? Thank you

Reply content:

Is there a direct connection between the number of Pm.max children and the concurrency capability of PHP-FPM? Thank you

A short answer:
Pm.max_children = maximum number of concurrent

A detailed answer:
Pm.max_children represents the maximum number of child processes that PHP-FPM can start. Because PHP-FPM is a multi-process single-threaded synchronous mode, where a child process processes at most one request at a time, the number of child processes equals the maximum number of concurrent sessions.

The number of processes is generally limited to memory and Nginx similar, based on memory calculation This value is the most reasonable, to a certain amount may also have to test other aspects of hardware configuration, such as io! So the answer is definitely an influence.

Yes, I have seen it before when I checked 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.