JM Logs

Collecting JMeter logs for archiving

Ultimately log files are useful for finding issues, especially early on in a project. And if they’re not needed, they can be purged after. There is one caveat to this statement, too much logging can certainly be a problem in running full scale performance tests. In fact, if you find you can’t get up to a decent load, it may be worth reviewing your level of logs and results listeners etc.

What I have added here is simply to download any logs you do have. To this end, I save the standard controller output from screen to a file and I specify a file for the jmeter log. These can then be copied up to the Jenkins workspace, for example.

JMeter logging levels can be controlled in the jmeter.properties file and this can sometimes be useful if you have unexpected issues showing up

To get the standard output to file I use tee. After some use with command line pipes, in various batches and Jenkins, I found a better solution was to build this straight into the controller script. So now, near the top of the script I use:

logs1

For the JMeter log, I specify the log location on the command line with the -j option and then copy this over at the end with the results files. It may be worth adjusting this for your purposes, perhaps copying over just one injector log, or a hand full, chosen at random, depending on your needs:

logs2

logs4

[Home] [About (CV)] [Contact Us] [JMeter Cloud] [JM Highlights] [JM Overview] [JM Control] [JM Inject] [JM Threads] [JM Results] [JM Assertions] [JM TPS] [JM Metrics] [JM Runtime] [JM Collation] [JM Logs] [JM 95th] [JM 95th v2] [JM Jenkins] [JM Corporate] [JM Scripts] [JM Variables] [JM Embedded] [JM Hosts] [JM Running] [JM Example] [JM Versions] [webPageTest] [_64 images] [asset moniitor] [Linux Monitor] [Splunk ETL] [Splunk API] [AWS bash] [LR Rules OK] [LR Slave] [LR CI Graphs] [LoadRunner CI] [LR CI Variables] [LR Bamboo] [LR Methods] [LR CI BASH] [Bash methods] [Jenkins V2] [Streaming vid] [How fast] [Finding Issues] [Reporting] [Hand over] [VB Scripts] [JMeter tips] [JMeter RAW] [Dynatrace] [Documents] [FAQ] [Legal]

In the Cartesian Elements Ltd group of companies