IfModule mpm_worker_module

http://yhj1065.blog.163.com/blog/static/19800217201171175851553/

ServerLimit 35    //最多可以启动35个进程
ThreadLimit 200 //每个进程最多可以启动200个线程
StartServers 5    //启动apache时,首次启动5个进程
MaxClients 2400 //最多支持2400个并发的http链接
MinSpareThreads 100 //最少有100个线程空闲,否则新增加进程或者线程了
MaxSpareThreads 200 //最多有200个线程空闲,否则就要自动回收多余空闲的线程或者进程
ThreadsPerChild 80     //启动一个进程时,此进程首先启动80个线程
MaxRequestsPerChild 0 //允许每个进程在它的生命周期内处理的http最大请求. 0没有限制。 Limit on the number of requests that an individual child server will handle during its life. If MaxRequestsPerChild is 0, then the process will never expire.


其中ThreadLimit指令值一定要大于ThreadsPerChild, 且ServerLimit*ThreadsPerChild的值一定要大于MaxClients


你可能感兴趣的:(IfModule mpm_worker_module)