Two analysis of JTL files on Jtlparser-linux jmeter

Source: Internet
Author: User
Tags svn

Parse JMeter's JTL fileJanuary 30, 2013 ? A total of 1452 characters? small size big ? Comments Off

Http://code.google.com/p/xtoolkit/wiki/JTLParser

Introduction

When the JMeter is run using the command line, JMeter saves the results to a specified file (specified with the- L parameter). This file records the response time, status, and so on for each query, such as:

<?XML version="1.0"Encoding="UTF-8"?>
<testresultsVersion="1.2">
t= "232" lt= "232" ts= "1305880045755" s= "true" lb= "HTTP Request" rc=< Span class= "ATV" > " rm = "OK" tn = "Cardeye 1-1" dt= " Text "by=" 2508 "/>
</TESTRESULTS>

This includes:

    • T is the response time of the query
    • TS is the send time, in milliseconds, for the query
    • RC is the return code

My jtlparser is to parse this file, and then return some of the commonly used performance results indicators, the performance metrics returned are:

    • QPS: Average number of query processed in one second
    • Latency: Average response time
    • Maximum response time
    • Query Success number: The return code is 200 of the query count
    • Query Failed number: The return code is not a 200 query count

SVN checkout http://xtoolkit.googlecode.com/svn/tags/JTLParser-0.1 Jtlparser

Usage
Java-JarJtlparser. jar
--jtlfile jtlfile : JTL file to parse
--percentfields percentfields : Query response time with different percentages to show , separated by commas
--responsetimefields responsetimefield: Query Number of different response time periods that need to be displayed , separated by commas
Default usage

By default, you can use \-\-jtlfile to connect to a JTL file, and you can get results similar to the following:

From:05/20/1104:27:25
END:05/20/1104:37:25
sendedQueryNumber:11721
TotalspendedTime(S):599.72
QPS:                     19.54
Latency(Ms): 43
MaxResponsetime(Ms): 403
QuerySuccessnumber: 11721
QueryFailednumber: 0
Show average response time for query under different percentages

Run like: java-jar jtlparser.jar--jtlfile yourjtlfile--percentfields 40,70,80,90 You can get the following results:

40percentile ( Ms      17 
70percentile (ms      30
80 percentile (ms35
90percentile< Span class= "pun" > (ms       39
Displays the number of query for different response time periods

Run like this:java-jar jtlparser.jar--jtlfile yourjtlfile--responsetimefields 30,40,50 You can get a similar result:

Latency>=30 (ms       7665    65.40%  
latency>=40 ( Span class= "PLN" >ms      6288 53.65%
latency>=50 (ms< Span class= "pun"):      4951    < Span class= "lit" >42.24%

Jtlparser-linux jmeter jtl file Two analysis

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.