配置 apache benchmark 以使用不同的查询参数
我正在使用 apache 基准测试 [ab] 对我的 http 服务进行压力/性能测试。
我想在 http 调用中使用不同的查询参数,例如从文件配置。我发现这个补丁可以让你做到这一点。我有以下问题:
1] 我下载了 ab.c 文件,但不知道该把它放在哪里。目前我的 ab 二进制文件位于 /usr/bin 中。如果我将 ab.c 放在那里并 gcc ab.c 我会收到一堆错误,因为它找不到标头等。我的 /usr/lib/httpd/modules 只有一堆 .so 文件。因此,基本上,任何有关如何使补丁发挥作用的帮助都是值得赞赏的。
2] 该补丁的许可不明确,它说:© 版权所有 Chris Miles 2007。保留所有权利。有人可以评论我是否可以使用它吗?
谢谢
I am stress/perf testing my http service using apache benchmark [ab].
I wanted to use different query parameters in the http call configuring say from a file. I found this patch which allows you to do that. I had following questions:
1] I downloaded the ab.c file but couldnt figure out where to put it. Currently my ab binary is in /usr/bin . If I put the ab.c in there and gcc ab.c I get bunch of errors, because it cannot find the headers etc. My /usr/lib/httpd/modules just has bunch of .so files. So basically any help in how to get the patch working is appreciated.
2] The licensing is not clear for the patch, It says: © Copyright Chris Miles 2007. All rights reserved. Can someone comment if I can use it ?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须从 [source][1] 构建
httpd
。ab.c
位于support
子目录中。您必须在构建之前更换它。另请注意,您可能需要获取版本 2.2.4 的源代码(如您共享的 [链接][5] 所示)。我不知道您对编译程序的舒适度,但这些链接可能会有所帮助:
考虑您希望通过这样做实现什么目标,另请参阅:[问题 2602841][2]。
1:httpd.apache.org/download.cgi#apache22
2:更改 Apache Bench 每次迭代使用的 POST 数据
3:Everydaylht.com/howtos/system-administration/compiling-software-from-source-code/
4:luv.asn.au/overheads/compile.html
5:chrismiles.info/dev/testing/ab/
You will have to build
httpd
from [source][1].ab.c
is in thesupport
sub directory. You will have to replace it before building. Also, note that you'll probably have to get source for version 2.2.4 (as the [link][5] you shared suggests).I do not know your comfort level with compiling programs, but these links may be of help:
Considering what you're looking to achieve by doing this, see also: [Question 2602841][2].
1: httpd.apache.org/download.cgi#apache22
2: Changing POST data used by Apache Bench per iteration
3: everydaylht.com/howtos/system-administration/compiling-software-from-source-code/
4: luv.asn.au/overheads/compile.html
5: chrismiles.info/dev/testing/ab/