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

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

问题描述

上下文

我们希望使用重播" Web服务器访问日志来生成负载测试.我最近读过有关在云中使用jmeter的博客文章(例如,启动多个Amazon EC2实例以生成负载)时,就想到了JMeter.

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.

访问日志采样器

Access Log Sampler

  • 做到:

  • DOES:

  • 重新创建会话,即处理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.

此外,文档将访问日志采样器描述为字母代码",即使它已经使用了8年.它似乎没有得到积极维护. (这比Gmail的beta版本要长.)

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:

  • blog: http://www.igvita.com/2008/09/30/load-testing-with-log-replay/
  • httpperf: http://code.google.com/p/httperf/

摘要

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

推荐答案

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

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

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

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