Ubuntu 12.04 httperf在Ubuntu12.04上给出了打开文件描述符的警告,但在Ubuntu10.04中没有

Ubuntu 12.04 httperf在Ubuntu12.04上给出了打开文件描述符的警告,但在Ubuntu10.04中没有,ubuntu-12.04,ubuntu-10.10,httperf,Ubuntu 12.04,Ubuntu 10.10,Httperf,我已经使用httperf运行了几个星期的负载测试,结果发现这个错误- httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE when I fire query from OS - Ubuntu 12.04 LTS (64 bit machine). 但是如果我在一台32位的机器上运行相同的命令,它有OS-10.04 LTS;我没有收到错误消息 此外,我也在其

我已经使用httperf运行了几个星期的负载测试,结果发现这个错误-

httperf: warning: open file limit > FD_SETSIZE; limiting max. # of open files to FD_SETSIZE
when I fire query from OS - Ubuntu 12.04 LTS (64 bit machine). 
但是如果我在一台32位的机器上运行相同的命令,它有OS-10.04 LTS;我没有收到错误消息

此外,我也在其他帖子中尝试使用“ulimit-n”命令增加文件描述符的大小限制,并尝试使用

/usr/include/bits/typesizes.h
#定义FD设置大小65535

但这些方法失败了

谁能给我提个建议吗

观察:

无需对32台机器(使用Ubuntu 10.10)进行任何更改,那么Ubuntu 12.04的真正区别是什么?另外,我在不同的机器上试过(所有具有64位体系结构的机器都有相同的问题)

这也是14.04上的一个问题

要解决此问题,请执行以下步骤:

  • 将以下行添加到/etc/security/limits.conf
  • 在/usr/include/x86_64-linux-gnu/bits/typesize.h中,查找u FD_SETSIZE并将其值替换为65532

  • 从下载httperf

  • 从源代码构建和安装。按照自述文件中的说明进行操作,但如果尚未安装依赖项,则需要安装依赖项

  • 我更改了一些格式,但这主要是我的工作

     * hard nofile 65532
     * soft nofile 65532 
     root hard nofile 65532
     root soft nofile 65532
    
    sudo apt-get install libtool libssl openssl automake libevent-dev