-1

I'm getting result in GBs under jtl files, so how I can save jtl files in parts so that I can delete older files during Jmeter run.

jmeter -n -t test.jmx -j D:\jmeter.log -l D:\jmeterJTL.jtl

Above command will save the jmeter.log and jmeterJTL.jtl file in directory (D:). But I'm getting 1 gb data in 1 hour so how I can save this in parts: jmeter1.log jmeter2.log jmeter3.log ... and jmeterJTL1.jt1 jmeterJTL2.jt1 jmeterJTL3.jt1 ...

Note: I'm also saving result in .jtl to logged in thread name so that I can debug. Is there any alternative for this?

halfer
  • 19,824
  • 17
  • 99
  • 186

1 Answers1

1

You are writing more response data (might be whole response data). You can reduce the file size by configuring the below properties.

In your jmeter.properties or user.properties file, use the following:

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

You can check this blazemeter blog to learn more about how to tune the performance of JMeter.

NaveenKumar Namachivayam
  • 1,163
  • 3
  • 25
  • 39
  • using log4j we can do it in java like MaxFileSize=100mb and backupIndex=5so it it will keep only 5 file each of 100mb and delete the old one. Do we have the similar thing in jmeter???? – Nimit Aggarwal Apr 26 '17 at 14:01
  • By configuring below property you can limit/extend the bytes. # Max size of bytes stored in memory per SampleResult # Ensure you don't exceed max capacity of a Java Array and remember # that the higher it is, the higher JMeter will consume heap # Defaults to 10MB `httpsampler.max_bytes_to_store_per_request=10485760` – NaveenKumar Namachivayam Apr 26 '17 at 14:15