+ -
当前位置:首页 → 问答吧 → 有关apache的 进程数量

有关apache的 进程数量

时间:2010-03-04

来源:互联网

本帖最后由 yiqieqie 于 2010-03-04 13:52 编辑
  1. server:~$ apache2 -v
  2. Apache/2.2.11 (Ubuntu)

  3. server:~$ less /etc/apache2/apache2.conf
  4. <IfModule mpm_prefork_module>
  5.     StartServers        200
  6.     MinSpareServers     100
  7.     MaxSpareServers     200
  8.     ServerLimit               500
  9.     MaxClients          500
  10.     MaxRequestsPerChild 10000
  11. </IfModule>

  12. server:~$ ulimit -a
  13. core file size          (blocks, -c) 0
  14. data seg size           (kbytes, -d) unlimited
  15. scheduling priority             (-e) 20
  16. file size               (blocks, -f) unlimited
  17. pending signals                 (-i) 16382
  18. max locked memory       (kbytes, -l) 64
  19. max memory size         (kbytes, -m) unlimited
  20. open files                      (-n) 1024
  21. pipe size            (512 bytes, -p) 8
  22. POSIX message queues     (bytes, -q) 819200
  23. real-time priority              (-r) 0
  24. stack size              (kbytes, -s) 8192
  25. cpu time               (seconds, -t) unlimited
  26. max user processes              (-u) unlimited
  27. virtual memory          (kbytes, -v) unlimited
  28. file locks                      (-x) unlimited

  29. server:~$ netstat -nat | grep 80 | wc -l
  30. 5970

  31. server:~$ ps aux | grep apache2 | wc -l
  32. 245
复制代码
server:~$ ps aux | grep apache2 | wc -l
245(为什么这个一直超不过 256呢?)

作者: yiqieqie   发布时间: 2010-03-04

  1.     StartServers        200
  2.     MinSpareServers     100
  3.     MaxSpareServers     200
复制代码
我有点不明白了。MaxSpareServers     才200怎么到245去的

作者: scyzxp   发布时间: 2010-03-04

回复 2# scyzxp


    # MaxSpareServers:保有的备用进程的最大数目

作者: yiqieqie   发布时间: 2010-03-04



QUOTE:
我有点不明白了。MaxSpareServers     才200怎么到245去的
scyzxp 发表于 2010-03-04 13:42




   
唉,你不会没用过apache吧

作者: xooass   发布时间: 2010-03-05

我现在主要使用nginx,最近也在研究APACHE了

作者: scyzxp   发布时间: 2010-03-05

有个最大容量问题吧

作者: notion001   发布时间: 2010-03-10