In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Apache working mode introduces 1.Apache as the most widely used and most stable open source server software for web server 2. There are many working modes. When the source package installs httpd, you can view the httpd-mpm.conf file, which is located in the extra/conf directory. At present, there are mainly two modes: event mode: a process contains multiple threads prefork mode: a process contains a thread worker mode: a process contains multiple threads event working mode introduction 1.event is the latest working mode of Apache, it is very similar to worker mode The difference is that it solves the problem that thread resources are wasted during keep-alive long connections. 2.event working mode will fail when it encounters some incompatible modules and will fall back to worker mode. 3.event working mode requires Linux system (Linux 2.6 +) to support epoll before it can be enabled. What needs to be added is the HTTPS connection (SSL) 4. In the event working mode, there are specialized threads that manage these keep-alive types of threads 5. 5. When a real request comes, the thread that passes the request to the server finishes execution and allows it to release 6. 5. In this way, a thread can handle several requests, achieving asynchronous non-blocking. This enhances the explanation of event parameters for request processing in high concurrency scenarios.
In the httpd-mpm.conf configuration file, the following is the definition of the prefork module
StartServers 3 MinSpareThreads 75 MaxSpareThreads 250 ThreadsPerChild 25 MaxRequestWorkers 400 MaxConnectionsPerChild 0
Parameter description
Event optimization recommendations
1. Can be debugged according to the production environment to determine the appropriate parameters
two。 Optimized reference
Introduction to ServerLimit 1000 StartServers 20 MinSpareThreads 25 MaxSpareThreads 1200 ThreadsPerChild 50 MaxRequestWorkers 2000 MaxC onnectionsPerChild 1000prefork Operation Mode
Prefork parameter explanation
In the httpd-mpm.conf configuration file, the following is the definition of the prefork module
StartServers 20 MinSpareServers 10 MaxSpareServers 50 MaxClients 150 MaxRequestsPerChild 0
Parameter description:
Prefork optimization recommendations
1. Can be debugged according to the production environment to determine the appropriate parameters
two。 Optimized reference
ServerLimit 1000 StartServers 10 MinSpareServers 10 MaxSpareServers 30 MaxClients 1000 MaxRequestsPerChild 5000worker Operation
Apache directory properties
Directory property parameters:
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.