标签:httpd
MPM:多处理模块 prefork:一个请求用一个进程响应 worker:一个请求用一个线程响应(线程是进程的子单位) 启动多个进程,每个进程生成多个线程 event: 一个进程处理多个请求 # 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 8 #启动的进程的数量 MinSpareServers 5 #最小空闲进程数量 MaxSpareServers 20 #最大空闲进程数量 ServerLimit 256 MaxClients 256 #最大客户端数,最多允许的连接数量 MaxRequestsPerChild 4000 #一个进程最多响应的次数 </IfModule>
KeepAlive Off #是否开启长连接
MaxKeepAliveRequests 100 #长连接的最大请求资源数量
KeepAliveTimeout 15 #超时时间
标签:httpd
原文地址:http://chomper.blog.51cto.com/7866214/1698298