What is the limit of the number of accesses per second that a single PHP process processes

Source: Internet
Author: User
What is the limit of the number of accesses per second that a single PHP process processes
What is the limit of the number of accesses per second that a single PHP process can handle? What is the amount of memory that a single PHP process consumes, how to configure PHP-FPM based on the size of the host's memory, and open the appropriate size of the work process?

is the local view PHP process only occupy 1M (no processing access), other articles say a PHP process will occupy 20-40m, excuse me why?

------to solve the idea----------------------
PHP-FPM, 20-40m when requested.
When a new request comes in, it first looks at whether the process pool has an idle PHP-FPM process (which may be more than 1m at idle), and does not create a new one (depending on the pm.max_children to set the maximum number of processes to create), and each process uses the Pm.max_ After the number of requests is set, it will be closed and released.
------to solve the idea----------------------
A request will be processed by a PHP process. The run time of the process is related to the PHP file code being executed.
The processing will be released if your program requires more than 1 seconds for each request to complete.
So, you set the maximum process number 100, that is, only 100 concurrent.
  • 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.