访问日志重放以进行负载测试?Jmeter 陷阱和竞争对手 [英] Access log replay for load testing? Jmeter Pitfalls and Competitors

查看:23
本文介绍了访问日志重放以进行负载测试?Jmeter 陷阱和竞争对手的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

背景

我们希望使用重播"网络服务器访问日志来生成负载测试.JMeter 出现在我的脑海中,因为我最近阅读了有关在云中使用 jmeter 的博客文章(例如,启动多个 Amazon EC2 实例以生成负载)

We wish to use "replay" web server access logs to generate load tests. JMeter had come to mind as I'd recently read blog posts about using jmeter in the cloud (e.g. firing up a number of Amazon EC2 instances to generate the load)

多年来,我一直听说 JMeter 具有重放访问日志的能力,但在审查此功能时,我发现了以下内容.

For years I had heard of JMeter's ability to replay access logs, but in reviewing this feature I found the following.

访问日志采样器

  • 做:

  • 重新创建会话,即处理 jsessionId 令牌(认为它试图通过 IP 地址来近似会话);
  • recreate sessions, i.e. handle the jsessionId token (thought it tries to approximate sessions by IP address);

不会:

  • 处理 POST 数据(即使您可以配置 apache/tomcat 将发布数据写入访问日志,jmeter 访问日志采样器也只能处理常见"日志格式).

发布数据对于重新创建实际负载大有帮助.

Post data would go a long way toward recreating actual load.

此外,该文档将 Access Log Sampler 描述为alpha 代码",即使它已有 8 年的历史.它似乎没有积极维护.(这比 Gmail 的测试版要长.)

Additionally, the documentation describes the Access Log Sampler as "alpha code" even though it's 8 years old. It doesn't seem actively maintained. (That's longer than Gmail's beta.)

HttpPerf

另一篇博文将我引向了 httpperf 工具.我已经开始阅读它了:

Another blog post pointed me to the httpperf tool. I've started to read up on it:

总结

  • 从真实用户数据生成负载测试脚本"的最佳方法是什么?
  • 什么最适合您?
  • 各种工具的优缺点?

推荐答案

JMeter + HTTP Raw Request + Raw Data Source 对我来说效果很好

JMeter + HTTP Raw Request + Raw Data Source for me works well

这篇关于访问日志重放以进行负载测试?Jmeter 陷阱和竞争对手的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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