Linux Apache Perfork Set process number of responses

Source: Internet
Author: User
Linux 7.5GiB memory, 4 EC2 Compute units (2 virtual cores, each with 2 EC2 compute units), 850GB Local instance storage, 64-bit platform
Apache2.2 PHP5.3 mysql connected remote database server
Google Analytics Real-time detection shows basic simultaneous 500, 600, 700 to 1000 multiplayer online
Apache perfork Mode
is now set to
Startservers 20
Minspareservers 20
Maxspareservers 40
Serverlimit 10000
MaxClients 5000
Maxrequestsperchild 3000

Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, S[a]} ' time_wait 8496
Fin_wait1 28
Fin_wait2 393
Established 226
SYN_RECV 23
CLOSING 1
Last_ack 4
Ps-ef | grep httpd | Wc-l
267

Top shows a bunch of httpd processes,
Problem:
Perfork inside of Startservers, Minspareservers, Maxspareservers, Serverlimit, maxclients, maxrequestsperchild what mean Ah, Which control the number of simultaneous responses Ah, the number of processes, the number of sub-processes, top display of each httpd a process or a child process? , Perfork set What's the problem no,, Apache settings also need to pay attention to what?

Reply content:

Linux 7.5GiB memory, 4 EC2 Compute units (2 virtual cores, each with 2 EC2 compute units), 850GB Local instance storage, 64-bit platform
Apache2.2 PHP5.3 mysql connected remote database server
Google Analytics Real-time detection shows basic simultaneous 500, 600, 700 to 1000 multiplayer online
Apache perfork Mode
is now set to
Startservers 20
Minspareservers 20
Maxspareservers 40
Serverlimit 10000
MaxClients 5000
Maxrequestsperchild 3000

Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, S[a]} ' time_wait 8496
Fin_wait1 28
Fin_wait2 393
Established 226
SYN_RECV 23
CLOSING 1
Last_ack 4
Ps-ef | grep httpd | Wc-l
267

Top shows a bunch of httpd processes,
Problem:
Perfork inside of Startservers, Minspareservers, Maxspareservers, Serverlimit, maxclients, maxrequestsperchild what mean Ah, Which control the number of simultaneous responses Ah, the number of processes, the number of sub-processes, top display of each httpd a process or a child process? , Perfork set What's the problem no,, Apache settings also need to pay attention to what?

Http://apache.chinahtml.com/mod/prefork.html

  • 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.