从非GUI模式运行测试时如何控制JTL文件的大小 [英] How can we control size of JTL file while running test from Non GUI Mode

查看:897
本文介绍了从非GUI模式运行测试时如何控制JTL文件的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当从非GUI模式安排Jmeter测试时,有没有一种方法可以控制JTL文件的大小.

Is there a way by which we can control size of JTL file when Jmeter test is scheduled from NON-GUI mode.

我正在使用Ramp UP 100和持续时间1200运行针对100个用户的测试.测试后的JTL文件大小为170MB.

I am running test for 100 Users, using Ramp UP 100 and duration 1200. After the test JTL file size is 170MB.

我已在聚合报告列表"中发布了配置".我的测试计划中只有汇总Listnet.

I have posted Configuration in Aggregate Report Listner. I have only Aggregate listnet in my test plan.

在我的jmeter.properties中,我有以下设置.
jmeter.save.saveservice.output_format = xml

In my jmeter.properties, i have below settings.
jmeter.save.saveservice.output_format=xml

我担心的是,如果我进行较长时间的测试(12-24小时),那么JTL文件的大小将会很大.Kildy告诉我是否有办法减少在jtl文件中保存的数据量.

My concern is, if i run test for longer duration (12-24 hours), then JTL file size will be huge.Kildy let me know if there is way if i can reduce amount of data getting saved in jtl file.

推荐答案

这主要是由于存储了响应数据(来自子结果),整个响应都被写入.jtl文件中,这会导致额外的磁盘IO并扩大.jtl大小

This is mostly due to storing response data (from sub results), the whole response is being written into .jtl file which causes extra disk IO and enlarges .jtl size

  1. 使用CSV作为输出格式
  2. 取消选中Save Sub Results (XML)

相关的 user.properties 是:

jmeter.save.saveservice.output_format=csv
jmeter.save.saveservice.subresults=false

良好"属性的示例应看起来像

Example of "good" properties should look somehow like

请参见针对JMeter负载测试内存不足"失败的9种简便解决方案文章,全面介绍了您的用例和其他用例

See 9 Easy Solutions for a JMeter Load Test "Out of Memory" Failure article for comprehensive explanation of your and other use cases

这篇关于从非GUI模式运行测试时如何控制JTL文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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