Top Banner
© 2015 Intermedix Corporation. Proprietary and Confidential. Load Testing with JMeter, BlazeMeter, New Relic Giedrius Kriščiukaitis [email protected]
20

Load Testing with JMeter, BlazeMeter, New Relic

Apr 13, 2017

Download

Technology

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Load Testing with JMeter, BlazeMeter, New Relic

Giedrius Krišč[email protected]

Page 2: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

Performance

https://www.youtube.com/watch?v=ChSazF41q-s

“...use the minimum it takes to make it happen...”Jerry Miculek (world champion shooter)

(watch first 3min. - the take away about essential needs for performance)

Page 3: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

What to test?

1. Regressions in code

Ramp THREADS from 1 to 20 – does response time change exponentially? It should be line or linear.

2. Page-views per day/hour/second (Business requirements)

Ramp THREADS from 1 to n (e.g. 200-1000 or more) and monitor the response time graph when it starts to go up (get your max thread count there). Then for required period of time execute a test with max THREADS to get most page-views count. You can compare this amount with Google analytics real data.

Page 4: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Measuring performance in life...

Page 5: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

...does not guarantee the victory.

It just shows if you can/can not go racing...

Page 6: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Response time

Response time is the total amount of time it takes to respond to a request for service.

Observers can recall one specific image in an unbroken series of different images, each of which lasts as little as 13 milliseconds

Page 7: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Client side

Page 8: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Server Side

Page 9: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Anatomy of Your TestLaptop

CPU RAM DISK NET

AP server

CPU RAM DISK NET

DB server

CPU RAM DISK NET

Threads eat RAM

Network latencyLimits by ISPFirewallsLoad balancersCost of Traffic

No dedicated networkHostnames instead of IpsAdditional facilitating software/hardware

Page 10: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Load

An idle computer has a load number of 0.

Each process using or waiting for CPU (the ready queue or run queue) increments the load number by 1.

Load < 10 = OK

Page 11: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

JMeter

Load test functional behavior and measure performance.http://jmeter.apache.org/

Page 12: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Distributed JMeter

Page 13: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

BlazeMeter

Continuous load testing platform.https://blazemeter.com/

Page 14: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

New Relic

Application Performance Management & Monitoring.http://newrelic.com/

Page 15: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

Most important metrics?

l Response time valuel Response time graphl Page views count per testl Error %l Server resources status

Page 16: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

Google PageSpeed

PageSpeed Insights analyzes the content of a web page, then generates suggestions to make that page faster.

This is a perfect tool to start with. It does list you the client side performance issues.

https://developers.google.com/speed/pagespeed/insights/

Page 17: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

Respect Hardware

Hardware is fragile. Please understand whole picture, all components and consequences when you will plan

your next test.

Page 18: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.

Questions?

Giedrius Krišč[email protected]

https://m.do.co/c/a1c0bd9bc8be

10 USD For a VM >

Page 19: Load Testing with JMeter, BlazeMeter, New Relic

© 2015 Intermedix Corporation. Proprietary and Confidential.

Page 20: Load Testing with JMeter, BlazeMeter, New Relic