1
votes

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

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

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

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

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.

1
saving response message is not really recommended for actual load tests. uncheck it and you will observe a clear drop in file size.TestingWithArif

1 Answers

8
votes

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. Use CSV as output format
  2. Uncheck Save Sub Results (XML)

The relevant user.properties are:

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

Example of "good" properties should look somehow like

Save Service Config

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