Tuesday, September 29, 2009

Graphing JMeter results from the command line

I'm currently knee-deep in some performance testing, and I wanted to have fully automated JMeter runs, with attendant fully-automated graphing of the results.

There's lots of results to graph from the systems, but the JMeter log itself is a great source of data.

Only problem is, the best-looking script didn't seem to want to produce the two most important graphs I wanted to see! (aggregate throughput and aggregate users)

The script is here:

http://wiki.apache.org/jakarta-jmeter/LogAnalysis?action=AttachFile&do=get&target=jmetergraph.pl

From:
http://wiki.apache.org/jakarta-jmeter/LogAnalysis


All it needed was a small patch though, et voila, I've got the aggregate charts.

Maybe this will save others (http://markmail.org/message/yntlaygfepnpine7) the time?



[mhardy@tkdevvm(192.168.146.130) util]$ diff jmetergraph.pl ~/mike/Desktop/jmetergraph.pl
313,314d312
< $glabels{'entire'} = \%entire;
<