ubuntu – Siege:descriptor table full sock.c:119:打开的文件过多

前端之家收集整理的这篇文章主要介绍了ubuntu – Siege:descriptor table full sock.c:119:打开的文件过多前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用带有以下命令的siege在我自己的服务器中进行压力测试:
$siege -c 500 myweb.com/somefile.PHP

但我得到这个错误

[error] descriptor table full sock.c:119: Too many open files

我也得到了这个警告:

libgcc_s.so.1 must be installed for pthread_cancel to work

但我正在使用Ubuntu 15.04(开发分支),我已经安装了libgcc1包,所以我不知道为什么它会抱怨.so共享库.

我怎么能解决太多的打开文件和libgcc警告?

为了解决这个问题,我不得不调整操作系统“ulimit”设置:

ulimit -a – 检查当前设置

ulimit -n 10000 – 编辑设定值

资料来源:https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595527

原文链接:https://www.f2er.com/ubuntu/348801.html

猜你在找的Ubuntu相关文章