使用benchmark的问题

coltext

我执行 ./benchmark -n1 -h1 -c2000 -p9091 127.0.0.1
打印出 client: socket: Too many open files
请问这是什么问题?
有没有关于 benchmark 测试结果或报告信息的说明呢?

4417 2 0
2个回答

walkor

Linux内核没有调优,默认单个进程只能打开1024个文件句柄,2000并发在benchmark脚本进程里面要打开至少2000个socket文件句柄,超出内核限制所以报错。参考手册改下内核参数
http://doc3.workerman.net/appendices/kernel-optimization.html

  • coltext 2015-12-18

    首先非常谢谢你的回答。么么哒,我把benchmark 和 服务器分开,局域网 ,benchmark client: connect: Connection timed out 请问是什么原因造成的?

hehuping

请问下自带的 benchmark 在哪里呀? 安装包里没有看到

  • 暂无评论
年代过于久远,无法发表回答
🔝