问题标签 [httperf]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
355 浏览

cookies - Autobench 和设置 httperf_add-header 出现问题

我想加载测试我的应用程序并需要一个 Cookie。我查看了所有其他问题并尝试了这个:

autobench.conf 中

httperf_add-header = "Cookie: cookie_name=cookie_string\n"

还是行不通。我相信被忽略了。

但是,当我像这样运行 httperf 时:

httperf --add-header="Cookie: cookie_name=cookie_string\n" --server=server --port=port--uri=/uri

它工作完美。

那么,我如何使它适用于 Autobench?

提前致谢。

0 投票
1 回答
557 浏览

ruby-on-rails - 使用 httperf 进行 Rails 负载测试

我正在尝试使用 httperf 加载测试我的 Rails (3.2.13) 应用程序。它对于不需要 cookie 的页面非常有效。但是,我无法让它适用于需要 cookie 的页面。我正在使用 Gregg Pollack 的 httperf ( https://github.com/Gregg/httperf_big_cookies ),因为官方版本不支持大 cookie。

这是我使用的命令:

httperf --session-cookie --wsesslog=1,5,path.txt --rate=1 --timeout=15 --server=localhost --port=3000

而且,这是 path.txt 文件:

cookies方法总是nil在控制器内部返回。

所以,请建议我如何克服这个问题或更好的工具(基于控制台)来测试 Rails 应用程序的负载。

0 投票
1 回答
589 浏览

rest - Httperf:如何使用 endoded uri 测试 REST api

我想测试我的 REST API,它的 URI 是这样的:

我该怎么做。回复状态是“httperf不支持 505 HTTP 版本”我知道这个 urihttperf没有正确编码和发送它..

我将如何实现这一目标httperf

0 投票
1 回答
2372 浏览

httperf - Httperf wsesslog 理解

我有一个名为 sessions.txt 的文件,其中包含以下内容:

这意味着在文件中我有 3 个长度为 1 的会话

我运行的 Httperf 命令是

在下面的结果中,我无法理解此响应时间是针对所有会话还是针对每个单独的请求。我也提到了 rate=300 ,但结果,连接率仍然说=1.6 conns/s

0 投票
2 回答
323 浏览

httperf - httperf 用于对 Web 服务器进行基准测试

我正在使用 httperf 对 Web 服务器进行基准测试。我的配置,i5 处理器和 4GB RAM。如何强调此配置以获得准确的结果...?我的意思是我必须在这台服务器(12.04 LTS 服务器)上放置 100% 的负载。

0 投票
1 回答
703 浏览

load-testing - 在理解 httperf num_calls 和 num_conns 方面需要帮助

当我使用以下选项运行 httperf 时,输出很容易理解。

选项:以 10 个(速率)连接/秒的速率建立总共 10 个连接(num-conns),每个连接 2 个请求调用(num-calls)。输出:10 个连接和 20 个请求调用

但是,当我使用以下选项时,httperf 输出,输出令人困惑。选项:以 10(速率)连接/秒的速率总共建立 4 个连接(num-conns),每个连接 6 个请求调用(num-calls)。

似乎当 num-calls 大于 num-conns 时,发出的请求数是 2*num-conns。

我没有理解为什么 num-calls 大于 num-conns。我错过了什么吗?

0 投票
0 回答
637 浏览

benchmarking - 使用 POST 进行文件上传的 httperf 基准测试

我想对使用 HTTPERF 将文件上传到远程服务器进行基准测试

我知道有一个 wsesslog 选项,我可以在其中提供表单数据的条目。

但是我也可以发送文件的发布请求吗?

就像是:

httperf --hog --server 127.0.0.1 --port 5000
--add-header="Content-Type: application/x-www-form-urlencoded\n" --wsesslog=150,0,httperf_content

httperf_content 文件包含

0 投票
2 回答
1594 浏览

ssl - httperf:连接失败,出现意外错误 0

使用 --ssl 运行 httperf 时,是否有人看到“httperf:连接失败,出现意外错误 0”?

这阻止了我在该域上的测试。当我在https://google.com上测试 --ssl 时,它运行良好。

在我的“有问题”域的另一端有 ELB,将调用转发到 heroku。

在我的工作站上:OSX 10.9.5 和 httperf-0.9.0(通过 brew)

0 投票
0 回答
1419 浏览

ubuntu-12.04 - 增加 httperf 文件描述符大小

我正在尝试使用 httperf 对我制作的服务器应用程序进行一些测试。

我通过 apt-get 安装了 httperf:

sudo apt-get install httperf

当我运行任何示例时,httperf 会返回如下警告:

httperf:警告:打开文件限制 > FD_SETSIZE;限制最大值 # 打开文件到 FD_SETSIZE

我读到我必须在“typesizes.h”中更改“__FD_SETSIZE”,但它不起作用(当我将其更改为“65532”时的事件):

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

有谁知道重新编译增加文件描述符大小的步骤?当我使用 rate > 40 时收到限制错误,例如:

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

非常感谢!

0 投票
1 回答
131 浏览

javascript - Httperf 配置

我想以等待页面加载所有附件的方式配置 httperf。就我而言,此页面附带了 2 个 Javascript 文件。在这种情况下它的命令应该是什么。我正在尝试使用此命令,但未能成功。

httperf --server 40.25.296.121 --port 7001 --uri /com.tele/addperson.html --rate 150 --num-conn 27000 --num-call 1 --timeout 5。

用这个工具可以吗?