본문 바로가기

JAVA - Backend/Plugins

JMeter - 성능 테스트

성능 측정 및 부하 측정 테스트

http://jmeter.apache.org 

 

Apache JMeter - Apache JMeter™

Apache JMeter™ The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. It was originally designed for testing Web Applications but has since expanded to other t

jmeter.apache.org

웹, FTP, DB, Mail, REST 등등..

CLI 지원

Thread Group : 한 쓰레드 당 유저 한명
Sampler : 어떤 유저가 해야 하는 액션
Listener : 응답을 받앋았 때 할 일 (리포팅, 검증, 그래프 그리기 등)
Configuration : Sampler 또는 Listener가 사용할 설정 값 (쿠키, JDBC 커넥션 등)
Assertion : 응답이 성공적인지 확인하는 방법( 응답 코드, 본문 내용 등)

Assertion 만들기
응답 코드 확인
응답 본문 확인

CLI 사용하기
jmeter -n -t 설정파일 -l 리포트 파일

대체제 : Gatling

http://gatling.io 

 

Gatling Open-Source Load Testing – For DevOps and CI/CD

Gatling is an open-source load testing tool for web applications, designed for DevOps

gatling.io

nGrinder

http://naver.github.io/ngrinder/

 

nGrinder

nGrinder 3.4 version is now available. Check the changes at here nGrinder is a platform for stress tests that enables you to execute script creation, test execution, monitoring, and result report generator simultaneously. The open-source nGrinder offers ea

naver.github.io

설치

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

 

Apache JMeter - Download Apache JMeter

Download Apache JMeter We recommend you use a mirror to download our release builds, but you must verify the integrity of the downloaded files using signatures downloaded from our main distribution directories. Recent releases (48 hours) may not yet be ava

jmeter.apache.org

1. Thread Group 추가
2. Thread 개수 설정
3. Ramp-up period : n초안에 Thread 개수만큼 만들기
4. sampler가 에러가 생길경우 취할 액션
5. Sampler 추가 - HTTP Request : 서버, 포트, 패스 정보 설정
6. Listner 추가 - Viewr Result in Tree, Viewr REsult in Table, Summary Report, Aggregate Report
7. 실행

https://chrome.google.com/webstore/detail/blazemeter-the-continuous/mbopgmdnpcbohhpnfglgohlbhfongabi

 

BlazeMeter | The Continuous Testing Platform

Record Selenium and HTTP traffic to create a load and functional tests in less than 10 minutes (Apache JMeter Compatible).

chrome.google.com