load testing with jmeter

21
Load Testing with JMeter Yuriy Gerasimov Lead Developer

Upload: yuriy-gerasimov

Post on 11-Apr-2017

350 views

Category:

Software


6 download

TRANSCRIPT

Load Testing with JMeterYuriy GerasimovLead Developer

Emulate traffic

• authenticated or anonymous

• record the scenario

• run it locally or in cloud

Initial Client Requirements

• expand users base

• 400.000 users, 10% logs in

• 10% users create content

• can our infrastructure handle the load?

Google Analytics

Google Analytics

• 290 sessions peak for 1 day

• 70 sessions in 1 hour

• Average session time 12 mins

• We need to test: 5, 20, 50 concurrent users

JMeter Scenario

• Login

• Browse some pages (5 nodes)

• 10% of time create a page

• Logout

HTTP Request

Regular Expression Extractor

BeanShell PreProcessor

BeanShell PreProcessor

View Node

Throughput Controller

Pitfalls. Login cookies on redirect

Results Tree

Results Table

Client Report

Client Report

Client Report

What I would do different

• Run next to production environment (eliminate

network problems)

• Better scenarios (learn from customer exact

behavior first)

References, to learn

• http://www.keysolutions.com/blogs/kenyee.nsf/d6plinks/KKYE-8LJQMG

• http://locust.io (python)

• http://tsung.erlang-projects.org (erlang)

Load Testing with JMeterYuriy GerasimovLead Developer