httperf

在ubuntu16.04编译安装httperf

。_饼干妹妹 提交于 2020-12-08 05:24:43
在网上偶尔看到httperf可以在测试中使用。网上苦苦找不到ubuntu编译安装的方法。自己琢磨了一下,现在总结如下: apt install httperf vim /etc/security/ limits.conf * hard nofile 65532 * soft nofile 65532 root hard nofile 65532 root soft nofile 65532 vim /usr/include/x86_64-linux-gnu/bits/ typesizes.h /* Number of descriptors that can fit in an `fd_set'. */ #define __FD_SETSIZE 1024 改为 #define __FD_SETSIZE 65532 apt install libtool-bin libssl-dev openssl automake libevent-dev autoconf autotools- dev m4 libtoolize autoreconf - i aclocal autoconf autoheader automake --add- missing . / configure make make install ln /usr/local/bin/httperf httperf

13 款 Linux 比较实用的工具

狂风中的少年 提交于 2020-10-28 09:49:54
点击上方 IT牧场 ,选择 置顶或者星标 技术干货每日送达 原文链接:http://suo.im/6wYSYy 作者:对World说Hello 本文介绍几款Linux比较实用的工具,希望有所帮助。 1、查看进程占用带宽情况-Nethogs Nethogs 是一个终端下的网络流量监控工具可以直观的显示每个进程占用的带宽。 2、硬盘读取性能测试-IOZone IOZone是一款Linux文件系统性能测试工具 可以测试不同的操作系统中文件系统的读写性能。 下载:http://www.iozone.org/src/current/ [root] # tar xvf iozone3_420.tar [root] # cd iozone3_420/src/current/ [root] # make linux [root] # ./iozone -a -n 512m -g 16g -i 0 -i 1 -i 5 -f /mnt/iozone -Rb ./iozone.xls -a使用全自动模式 -n为自动模式设置最小文件大小(Kbytes)。 -g设置自动模式可使用的最大文件大小Kbytes。 -i用来指定运行哪个测试。 -f指定测试文件的名字完成后自动删除 -R产生Excel到标准输出 -b指定输出到指定文件上 3、实时监控磁盘IO-IOTop IOTop命令是专门显示硬盘IO的命令

Gatling vs httperf

假如想象 提交于 2019-12-12 15:59:57
问题 I am trying to stress test one simple server with 10K connections per seconds; it's pretty dummy server so this should be possible. When I run gatling, the best I can get is 7K, at 8K we start to receive connection errors. This is again a simple test, ramping to 8k and holding the traffic for 2 minutes. Request 'Home' failed: java.net.ConnectException: Cannot assign requested address I know this error is related to tuning our box (open files etc). I have tried some commands, but that didn't

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

HTTPerf send JSON data from file

家住魔仙堡 提交于 2019-12-11 14:05:12
问题 Need to use this httperf as ab is returning SSL errors. Operating System Ubuntu 16 (Google Cloud Linux tools 4.15.0-1036-gcp #38~16.04.1-Ubuntu) curl (curl works fine) ACCESS_TOKEN=`gcloud auth print-access-token` export URL=https://ml.googleapis.com/v1/projects/dpe-cloud-mle/models/pretrained_model/versions/gpu:predict curl -X POST $URL -d @image_b64.json \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $ACCESS_TOKEN" ab testing tool ab -n 10 -c 1 -s 300 \ -f ALL \ -H

paste.httpserver and slowdown with HTTP/1.1 Keep-alive; tested with httperf and ab

与世无争的帅哥 提交于 2019-12-04 09:46:37
问题 I have a web server based on paste.httpserver as an adapater between HTTP and WSGI. When I do performance measurements with httperf, I can do over 1,000 requests per second if I start a new request each time using --num-conn. If I instead reuse the connection using --num-call then I get about 11 requests per second, 1/100th of the speed. If I try ab I get a timeout. My tests are % ./httperf --server localhost --port 8080 --num-conn 100 ... Request rate: 1320.4 req/s (0.8 ms/req) ... and % .

paste.httpserver and slowdown with HTTP/1.1 Keep-alive; tested with httperf and ab

不打扰是莪最后的温柔 提交于 2019-12-03 03:59:49
I have a web server based on paste.httpserver as an adapater between HTTP and WSGI. When I do performance measurements with httperf, I can do over 1,000 requests per second if I start a new request each time using --num-conn. If I instead reuse the connection using --num-call then I get about 11 requests per second, 1/100th of the speed. If I try ab I get a timeout. My tests are % ./httperf --server localhost --port 8080 --num-conn 100 ... Request rate: 1320.4 req/s (0.8 ms/req) ... and % ./httperf --server localhost --port 8080 --num-call 100 ... Request rate: 11.2 req/s (89.4 ms/req) ...

Changing the file descriptor size in httperf

依然范特西╮ 提交于 2019-12-01 05:47:32
I'm doing a series of benchmarks and found the httpperf tool. But the version in my ubuntu 12.04 has a too small file descriptor size. Because it warns me with this message: 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

Changing the file descriptor size in httperf

和自甴很熟 提交于 2019-12-01 02:12:22
问题 I'm doing a series of benchmarks and found the httpperf tool. But the version in my ubuntu 12.04 has a too small file descriptor size. Because it warns me with this message: 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