worker参数
StartServers 8
ServerLimit 55
ThreadLimit 150
MaxClients 3000
MinSpareThreads 60
MaxSpareThreads 120
ThreadsPerChild 60
MaxRequestsPerChild 650
启动后只有3个进程?
root 14161 1 0 16:56 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14164 14161 0 16:56 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14796 14161 0 17:10 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14860 14161 0 17:10 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
换成proker后确有8个
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
root 14466 1 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14468 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14469 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14470 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14471 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14472 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14473 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14474 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14475 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
StartServers 8
ServerLimit 55
ThreadLimit 150
MaxClients 3000
MinSpareThreads 60
MaxSpareThreads 120
ThreadsPerChild 60
MaxRequestsPerChild 650
启动后只有3个进程?
root 14161 1 0 16:56 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14164 14161 0 16:56 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14796 14161 0 17:10 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14860 14161 0 17:10 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
换成proker后确有8个
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
root 14466 1 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14468 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14469 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14470 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14471 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14472 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14473 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14474 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
webroot 14475 14466 0 17:02 ? 00:00:00 /application/apache2.2.31/bin/httpd -k start
0
铭哥,我编译的是worker
Server version: Apache/2.2.31 (Unix)
Server built: Jun 29 2016 10:51:01
Server's Module Magic Number: 20051115:40
Server loaded: APR 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
/application/apache/bin/apachectl -l
worker.c
编译参数:
./configure --prefix=/application/apache2.2.31 --enable-deflate --enable-expire --enable-headere --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
阿铭 发表于 2016-9-5 22:26
它的默认模式是prefork 你改worker那部分配置是无效的
铭哥,我编译的是worker
Server version: Apache/2.2.31 (Unix)
Server built: Jun 29 2016 10:51:01
Server's Module Magic Number: 20051115:40
Server loaded: APR 1.5.2, APR-Util 1.5.4
Compiled using: APR 1.5.2, APR-Util 1.5.4
Architecture: 64-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
/application/apache/bin/apachectl -l
worker.c
编译参数:
./configure --prefix=/application/apache2.2.31 --enable-deflate --enable-expire --enable-headere --enable-modules=most --enable-so --with-mpm=worker --enable-rewrite --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
编辑回复