How to use JMeter

Murry Jeong (정문창)
신나는연구소
Published in
2 min readNov 30, 2016

Introduction

JMeter can be used to simulate a heavy load on a server, group of servers, network or object to test its strength or to analyze overall performance under different load types. We can use it to make a graphical analysis of performance or to test server/script/object behavior under heavy concurrent load.

What can we do with JMeter?

Ability to load and performance/stress test many different server/protocol types:

  • Web — HTTP, HTTPS (Java, NodeJS, PHP, ASP.NET, …)
  • SOAP / REST Webservices
  • FTP
  • Database via JDBC
  • LDAP
  • Message-oriented middleware (MOM) via JMS
  • Mail — SMTP(S), POP3(S) and IMAP(S)
  • Native commands or shell scripts
  • TCP
  • Java Objects

Download

http://jmeter.apache.org/download_jmeter.cgi

Set java heap size

We should modify some lines from the line #44 in file “jmeter” to optimize for you.

Run JMeter

Load/save a model

click “file — open/save” on the menu bar

Start to test

click “run — start” on the menu bar

Make a example model

Test plan is a model that we want to test like.

1. Right click on “Test plan” and than select Add — Threads (Users) — Thread Group
2. Right click on “Thread Group” and than select Add — Config Element- HTTP Request Defaults 3. Right click on “Thread Group” and than select Add — Logical Controller — Loop Controller
4. Right click on “Loop Controller” and than select Add — Sampler — HTTP Request

Record own browser requests via proxy

We can record own browser requests via proxy

1. Right click on “Test plan” and than select Add — Threads (Users) — Thread Group
2. Right click on “Thread Group” and than select Add — Logical Controller — Recording Controller
3. Right click on “WorkBench” and than select Add — Non-Test Elements — HTTP(S) Test Script Recorder
4. Set configuration of Target Controller in HTTP(S) Test Script Recorder to “Test Plan > Thread Group > Recording Controller” 5. Set proxy on OS configuration.
6. Click “start” button in HTTP(S) Test Script Recorder.
7. Open own browser and than surfer a website as you want to

--

--

Murry Jeong (정문창)
신나는연구소

#틈만나면여행 #창업가를꿈꾸는개발자 #컴퓨터공학의탈을쓴산업공학도 #데이터를품은개발자