<![CDATA[Latest posts for the topic "httpd báo error log : server seems busy"]]> /hvaonline/posts/list/24.html JForum - http://www.jforum.net httpd báo error log : server seems busy Code:
server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 13 idle, and 129 total children
Đây là cấu hình trong file httpd.cnf Code:
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers       20
MinSpareServers    20
MaxSpareServers   50
ServerLimit      1000
MaxClients       1000
MaxRequestsPerChild  1000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers         20
MaxClients         300
MinSpareThreads     20
MaxSpareThreads     75 
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>
Cho mình hỏi là worker MPM và prefork MPM có gì khác nhau, và với thông báo lỗi như thế kia thì mình cần tăng giá trị nào lên ( mình có thử tăng cả StartServers, MinSpareThreads, MaxSpareThreads nhưng httpd vẫn báo busy & gây treo server ) ]]>
/hvaonline/posts/list/45327.html#279113 /hvaonline/posts/list/45327.html#279113 GMT