Load Testing With Jmeter: Presented by Matthew Stout - Mat@Ucsc - Edu
Load Testing With Jmeter: Presented by Matthew Stout - Mat@Ucsc - Edu
Load Testing With Jmeter: Presented by Matthew Stout - Mat@Ucsc - Edu
JMeter Overview
Java application for load testing and
measuring performance
Originally for web applications but has
grown to support lots of other functions,
SQL, Java, JUnit, SMTP, SOAP, LDAP,
etc.
UCSC ITS - APM - Infrastructure & Operations
JMeter Terms
Test Plan
Threads = Users
Controllers
Samplers
Makes Requests
Assertions
Listeners
Workbench
JMeter Terms
See JMeter Docs for more on components, functions, etc. This workshop
is intended to show some real uses and start interest in ITS, so I am not
going to go into all the features--Docs are out there though
http://jmeter.apache.org/usermanual/component_reference.html
http://jmeter.apache.org/usermanual/best-practices.html
http://wiki.apache.org/jmeter/
Install JMeter
Use latest version and latest jre at least
1.6
Can bundle and set your own location for
JRE easily on Mac/Unix
Very easy see Apache docs or my full
presentation on the UCCSC site
UCSC ITS - APM - Infrastructure & Operations
Install JMeter
Typical Load by type of Machine
Installing JMeter
Show an install
Firefox
Firebug
Recording a Test
This is usually where most demos start
I wanted to show the previous ways as
options to get you doing some load
testing with less initial effort
All methods can generate load
This allows you to record a specific user
transaction or experience
UCSC ITS - APM - Infrastructure & Operations
Recording a Test
Queue up the Live Demo
Summary so far...
Lots of ways to start a test
Keep evolving the test
Remove unneeded cruft and add
extractors and assertions to remove
errors and check for success
Determine load and how youll monitor
Run tests
UCSC ITS - APM - Infrastructure & Operations
Summary so far...
Then once you have a valid test
Watch results for sudden spikes,
isolate cause, tune one thing, retest
Repeat same exact test to measure
improvement
Assertions
Add at least basic assertions
Check for strings in response
Response code if appropriate
Without these it is easy to get a
success or OK return from JMeter
when really the app may be giving an
error (Err Msg, but 200)
UCSC ITS - APM - Infrastructure & Operations
http://jmeter.apache.
org/usermanual/jmeter_distributed_testing_step_by_step.pdf
Resources
The Encyclopedia, source, mothership:
https://jmeter.apache.org/
http://wiki.apache.org/jmeter/
http://blazemeter.com/
Resources
Blazemeter Youtube
https://www.youtube.com/user/BlazeMeterSupport
http://blazemeter.com/blog
Resources
Add to JMeter
http://jmeter-plugins.org/
Q&A