In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to modify the maximum number of connections in apache 2". In daily operation, I believe many people have doubts about how to modify the maximum number of connections in apache 2. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for you to answer the doubts about "how to modify the maximum number of connections in apache 2"! Next, please follow the editor to study!
Modify the httpd.conf file
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 1000
Modify
MaxClients 150
For
ServerLimit 2000
MaxClients 2000
If there is no part, you need to add note: related command
The ServerLimit directive specifies the maximum number of processes allowed to be configured by the server. Syntax server config limit number default value see the following description scope server config status MPM module prefork, worker
For preforkMPM, this directive sets the maximum allowable configuration value for MaxClients. For workerMPM, this directive is used in conjunction with ThreadLimit to set the maximum allowable configuration value for MaxClients. Any changes to this directive during restart will be ignored, but changes to MaxClients will take effect.
Be very careful when using this instruction. If ServerLimit is set to a much higher value than is actually needed, too much shared memory will be allocated. If ServerLimit and MaxClients are set to exceed the processing capacity of the system, Apache may not start, or the system may become unstable.
For preforkMPM, you need to use this instruction only if you need to set MaxClients higher than the default of256. Keep the value of this instruction the same as MaxClients.
For workerMPM, you need to use this instruction only if you need to set MaxClients and ThreadsPerChild to exceed the default value of 16 child processes. Do not set the value of this directive to more than the number of child processes required by MaxClients and ThreadsPerChild.
Be careful
Apache has a hard limit "ServerLimit 20000" internally at compile time ("ServerLimit 200000" for preforkMPM). You can't go beyond that limit.
At this point, the study on "how to modify the maximum number of connections in apache 2" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.