- 论坛徽章:
- 0
|
本帖最后由 yiqieqie 于 2010-03-04 13:52 编辑
- server:~$ apache2 -v
- Apache/2.2.11 (Ubuntu)
- server:~$ less /etc/apache2/apache2.conf
- <IfModule mpm_prefork_module>
- StartServers 200
- MinSpareServers 100
- MaxSpareServers 200
- ServerLimit 500
- MaxClients 500
- MaxRequestsPerChild 10000
- </IfModule>
- server:~$ ulimit -a
- core file size (blocks, -c) 0
- data seg size (kbytes, -d) unlimited
- scheduling priority (-e) 20
- file size (blocks, -f) unlimited
- pending signals (-i) 16382
- max locked memory (kbytes, -l) 64
- max memory size (kbytes, -m) unlimited
- open files (-n) 1024
- pipe size (512 bytes, -p) 8
- POSIX message queues (bytes, -q) 819200
- real-time priority (-r) 0
- stack size (kbytes, -s) 8192
- cpu time (seconds, -t) unlimited
- max user processes (-u) unlimited
- virtual memory (kbytes, -v) unlimited
- file locks (-x) unlimited
- server:~$ netstat -nat | grep 80 | wc -l
- 5970
- server:~$ ps aux | grep apache2 | wc -l
- 245
复制代码 server:~$ ps aux | grep apache2 | wc -l
245(为什么这个一直超不过 256呢?) |
|