【发布时间】:2010-12-03 00:55:51
【问题描述】:
当我开始 Apache Bench 测试时:
ab -n 10000 -c 1300 http://domain.com/test.php
我得到错误:
socket:打开的文件太多 (24)
当我更改为“-c 1000”时,它工作正常。
因为我可以有超过 1000 个并发用户,所以我想修复套接字打开文件过多的问题或增加参数。怎么做?在哪里做?
我在 centos 5 上使用 lighttpd。
【问题讨论】:
-
When i change to '-c 1000' it works fine.有助于保持懒惰 ;)
标签: apache scalability lighttpd file-descriptor