neha bedi
neha bedi

Reputation: 156

What are JTL's in Jmeter? how to use them?

I have read in best practices for jmeter -

Disable all JMeter graphs as they consume a lot of memory. You can view all of the real time graphs using the JTLs tab in your web interface.

How is it done? Also How can i generate graphs from JTL file. I have read that xml format for saving results to file are pretty expensive in terms of resource utilization. How can graphs be generated from logs with csv format?

Upvotes: 9

Views: 22407

Answers (3)

ping
ping

Reputation: 801

In Jmeter under Tools -> Generate HTML report:

enter image description here

This opens the dialog: enter image description here

There you can select the .jtl file. You also have to select the user.properties file (you find one in the bin directory of Jmeter) and pass a path to an output directory, which has to be empty. Then you can generate the report, which you will find in the output directory. There you will find an index.html file which includes the report.

enter image description here

Upvotes: 2

Dmitri T
Dmitri T

Reputation: 168072

You should design your load testing as follows:

  1. Store only those metrics which are absolutely required (you can control what values to save using properties which names start with jmeter.save.saveservice.*
  2. Run JMeter test in non-GUI mode with all listeners disabled
  3. Once test is finished you can do the following:

See 9 Easy Solutions for a JMeter Load Test “Out of Memory” Failure article for JMeter performance tips and tweaks.

Upvotes: 5

victor sosa
victor sosa

Reputation: 899

Quote

JMeter can create text files containing the results of a test run.

These are normally called JTL files, as that is the default extension - but any extension can be used.

from https://wiki.apache.org/jmeter/JtlFiles

And you can check how to create a plan here:

https://jmeter.apache.org/usermanual/build-web-test-plan.html

Graph Results https://jmeter.apache.org/usermanual/component_reference.html#Graph_Results

Graph Results MUST NOT BE USED during load test as it consumes a lot of resources (memory and CPU). Use it only for either functional testing or during Test Plan debugging and Validation.

Just don't use it.

And here is some information as how to read the files: How to make JMeter output graphs from log-file?

Just generate you own graph.

Upvotes: 7

Related Questions