问题描述
我正在做一系列基准测试,发现了 httpperf 工具
I'm doing a series of benchmarks and found the httpperf tool.
但是我的ubuntu 12.04中的版本的文件描述符大小太小.因为它用以下消息警告我:
But the version in my ubuntu 12.04 has a too small file descriptor size. Because it warns me with this message:
http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors ,但该网站现已关闭.
There used to be guide to compile httperf with a bigger size in http://gom-jabbar.org/articles/2009/02/04/httperf-and-file-descriptors but the site is down now.
有人知道使用正确设置编译工具的步骤吗?
Does anyone knows the steps to compile the tool with the proper settings?
推荐答案
我一直遵循此处,它应正确设置全局值.您可以通过发出ulimit -n
进行检查(N.B.我必须在我的.profile中添加ulimit -n 65535
,由于某些原因,命名用户不需要此文件,而root用户则需要.)
I've always followed the instructions here, which should set the global values properly. You can check by issuing a ulimit -n
(N.B. I had to include ulimit -n 65535
in my .profile — for some reason named users don't require this but root does.)
别忘了重新编译httperf.在执行make install
之前,发出./httperf -v | grep maximum
-您应该看到65535.否则,出了点问题.
Don't forget to recompile httperf. Before doing make install
issue a ./httperf -v | grep maximum
— you should see 65535. If not, something went wrong.
我正在从事一个类似的项目(在Ubuntu 12.04上为httperf 0.9.0),但是要让httperf正确地进行编译我遇到了一些困难.我确定我已经忘记了一些基本的知识,但请告诉我您的票价.意识到我的问题是库版本不兼容.我导入了在另一台服务器上构建的二进制文件,并且工作正常.
I am working on a similar project (httperf 0.9.0 on Ubuntu 12.04) but I am having some difficulty getting httperf to actually compile properly. I'm sure I've forgotten something basic, but let me know how you fare. Realized my problem was a library version incompatibility. I imported the binary built on a different server and it works fine.
这篇关于在httperf中更改文件描述符的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!