插座:打开的文件太多(24)阿帕奇替补的lighttpd [英] socket: Too many open files (24) apache bench lighttpd

查看:205
本文介绍了插座:打开的文件太多(24)阿帕奇替补的lighttpd的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我启动Apache台架试验:


  

AB -n 10000 -c 1300 http://domain.com/test.php


我得到错误:


  

插口:打开的文件太多(24)


当我更改为-c 1000',它工作正常。

由于我可以有超过1000个并发用户,我想解决插座打开的文件太多问题或增加参数。如何做到这一点,在哪里?

我用的lighttpd在CentOS 5。


解决方案

 的ulimit -n 10000

这可能不是取决于你的系统配置工作
来配置系统。

When I start Apache Bench test:

ab -n 10000 -c 1300 http://domain.com/test.php

I get error:

socket: Too many open files (24)

When i change to '-c 1000' it works fine.

Because I can have more than 1000 concurrent users I would like to fix socket too many open files problem or increase parameter. How to do this and where?

I use lighttpd on centos 5.

解决方案

ulimit -n 10000

That might not work depending on you system configuration Consult this to configure your system.

这篇关于插座:打开的文件太多(24)阿帕奇替补的lighttpd的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆