banner

[Rule] Rules  [Home] Main Forum  [Portal] Portal  
[Members] Member Listing  [Statistics] Statistics  [Search] Search  [Reading Room] Reading Room 
[Register] Register  
[Login] Loginhttp  | https  ]
 
Forum Index Thảo luận hệ điều hành *nix httpd báo error log : server seems busy  XML
  [Question]   httpd báo error log : server seems busy 30/11/2013 11:39:15 (+0700) | #1 | 279113
mr.tee
Member

[Minus]    0    [Plus]
Joined: 20/10/2009 01:18:07
Messages: 58
Offline
[Profile] [PM]
Mấy ngày hôm nay server chạy web bên mình hay báo lỗi này :

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 )
Après la pluie, le beau temps
[Up] [Print Copy]
[digg] [delicious] [google] [yahoo] [technorati] [reddit] [stumbleupon]
Go to: 
 Users currently in here 
1 Anonymous

Powered by JForum - Extended by HVAOnline
 hvaonline.net  |  hvaforum.net  |  hvazone.net  |  hvanews.net  |  vnhacker.org
1999 - 2013 © v2012|0504|218|