Increase httperf file descriptor size

一个人想着一个人 提交于 2019-12-12 01:55:19

问题


I'm trying to use httperf to make some tests on a server application that I made.

I installed httperf via apt-get:

sudo apt-get install httperf

When I run any sample, httperf returns a warning like this:

httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE

I read that I have to change "__FD_SETSIZE" in "typesizes.h" but it´s not working though (event when I change it to "65532"):

/usr/include/x86_64-linux-gnu/bits/typesizes.h

Does anyone know the steps to recompile increasing file descriptor size? I receive limit error when I use rate > 40, for example:

httperf --client=0/1 --server=127.0.0.1 --port=8080 --uri=/index.html --send-buffer=4096 --recv-buffer=16384 --num-conns=5000 --num-calls=1 --rate=40

Thank you very much!

来源:https://stackoverflow.com/questions/27427888/increase-httperf-file-descriptor-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!