load testing with jmeter, blazemeter, new relic
TRANSCRIPT
© 2015 Intermedix Corporation. Proprietary and Confidential.
Load Testing with JMeter, BlazeMeter, New Relic
Giedrius Krišč[email protected]
© 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)
© 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.
© 2015 Intermedix Corporation. Proprietary and Confidential.
...does not guarantee the victory.
It just shows if you can/can not go racing...
© 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
© 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
© 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
© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.
JMeter
Load test functional behavior and measure performance.http://jmeter.apache.org/
© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.
BlazeMeter
Continuous load testing platform.https://blazemeter.com/
© 2015 Intermedix Corporation. Proprietary and Confidential.© 2015 Intermedix Corporation. Proprietary and Confidential.
New Relic
Application Performance Management & Monitoring.http://newrelic.com/
© 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
© 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/
© 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.
© 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 >