Taking your Jmeter test monitoring to the next level
Richard Friedman, Redline13Founder@redlinethirteen@[email protected]
Kranthi Paidi, PerfAcademyFounder and Mentor@[email protected]@perfacademy.com
Agendao About PerfAcademy
o Real time monitoring of results in Jmeter – A problem that was
o Still a problem!
o Jmeter + Telegraph + Influx + Grafana – A match possibly made in heaven
o Demo
o Q&A
About PerfAcademyo Established in 2015 o Took almost an year of planning and interviews to design a comprehensive course o A mentor driven online learning platformo Completely focused on Performance Testing and Engineering disciplineo Live classes and cloud hosted labso Training from grass-roots levelo Open-ended problems a daily part of the courseo We strive to make our learners career readyo No 5 day courses
Real time monitoring of results in Jmetero Backend listener introduced in 2.13
o Provides graphite backend listener
o Default metrics are not enough
o Test plans with complex scenarios sufferedoMultiple Transactionso Throughput Suffered
o Cloud based executions warrant more detailed statistics
o A modified JAR File from TAG - http://www.testautomationguru.com/download/640/oMuch more detailedo No Listener neededo Light weight
Still a Problemo App / Web / DB Server health?o PerfMon listenero NO
o More listeners – More Degradation on Jmeter engineo Why? Asynchronous Threads Snowball effect
o Jmeter Master and Slaves health?
o JVM Performance of Jmeter instances?
o Can we have Jmeter do what it needs to do and do only that?o AND still have more statistical information without shelling 1000s of $
o Can we pinpoint a potential bottleneck quickly and effectively?
o What about trending of results? In a CI-CD environment, trending is of utmost importance to spot a regression
JTIG – A stack that promises a lotoTelegrafo Opensourceo Written in GOo Designed for Time serieso Minimal foot printo 50+ input and output plugins
o Influxo Time series databaseo Fast. Really fast.
o Grafanao Open source visualization tool for time series datao Extensible o Number of plugins and templateso Supports multiple data sources
The test lab layout
Slave 1
InfluxDB
App1 MySQLTelegraph Telegraph
Telegraf
A typical enterprise layout
Jmeter Master
Slave 1
Slave 2
Slave 3
InfluxDB
Web 1
Web 2
App1
App2
MySQLTelegraph
Telegraph
Telegraph
Telegraph
Telegraph
Telegraf
Telegraph
Telegraph
Demo
Things to watch out foro Scaling Influx once you have a considerable number of agents writing metrics is an exercise in itselfo Telegraf agents need to be restarted when you are invoking a new java process – A possible bugo Tag your transactions from Jmeter by passing along a user defined property which will make you create more informative dashboards o New in Grafana – Alerting & Thresholds mechanism. Still in beta
Q&A
www.perfacademy.com