首页 » 网站建设 »

MaxRequestWorkers(原MaxClients)

2019年5月17日 / 17次阅读
APACHE

  • 打开支付宝,搜索“ 529018372 ”,领取专属红包!每日支付每日领。

Apache的MPM模块的配置,对服务器的稳定运行至关重要,MaxRequestWorkers就是一条重要的配置,在2.3.13之前,它的名字是MaxClients。现在的Apache版本,这两个名字的配置向都支持,是一样的含义。

Description: Maximum number of connections that will be processed simultaneously

MaxRequestWorkers,就是能够同时处理的最大连接数,或者我们说成最大并发数。

The MaxRequestWorkers directive sets the limit on the number of simultaneous requests that will be served. Any connection attempts over the MaxRequestWorkers limit will normally be queued, up to a number based on the ListenBacklog directive. Once a child process is freed at the end of a different request, the connection will then be serviced.

任何高于这个数量的连接,会放入队列。

For non-threaded servers (i.e., prefork), MaxRequestWorkers translates into the maximum number of child processes that will be launched to serve requests. The default value is 256; to increase it, you must also raise ServerLimit.

对于prefork模式,MaxRequestWorkers表示的是最大子进程数。

For threaded and hybrid servers (e.g. event or worker) MaxRequestWorkers restricts the total number of threads that will be available to serve clients. For hybrid MPMs the default value is 16 (ServerLimit) multiplied by the value of 25 (ThreadsPerChild). Therefore, to increase MaxRequestWorkers to a value that requires more than 16 processes, you must also raise ServerLimit.

对于worker和event模式,MaxRequestWorkers会限制总的服务线程数。

深入理解prefork, worker和event模式

本文链接:https://www.maixj.net/wz/maxrequestworkers-maxclients-21376

相关文章

留言区


前一篇:
后一篇:
推一篇:可靠正规,长期稳定,网络兼职项目!!

栏目精选

云上小悟,麦新杰的独立博客

Ctrl+D 收藏本页

栏目


©Copyright 麦新杰 Since 2014 云上小悟独立博客版权所有 备案号:苏ICP备14045477号-1。云上小悟网站部分内容来源于网络,转载目的是为了整合信息,收藏学习,服务大家,有些转载内容也难以判断是否有侵权问题,如果侵犯了您的权益,请及时联系站长,我会立即删除。

网站二维码
go to top