在httperf中更改文件描述符的大小 [英] Changing the file descriptor size in httperf

查看:137
本文介绍了在httperf中更改文件描述符的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一系列基准测试,发现了 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:

  • httperf:警告:打开文件限制> FD_SETSIZE;极限最大#打开到FD_SETSIZE的文件
  • httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE

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?

推荐答案

我一直遵循

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中更改文件描述符的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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