본문 바로가기
  • 👩🏻‍💻 🌮 💬
👩🏻‍💻/Apache JMeter

[성능 테스트] Mac Apache JMeter 설치 및 실행

by 바쿄리 2022. 1. 20.

 

 

1. 설치

 

 

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 oth

jmeter.apache.org


① Download의 Download Releases 클릭

 


② Binaries의 apache-jmeter-5.4.3.zip 클릭해서 다운로드

 


③ 다음과 같이 생성된 파일를 확인할 수 있다.

 

 

2. plugin 설치

 

 

Install :: JMeter-Plugins.org

Installing Plugins The easiest way to get the plugins is to install Plugins Manager. Then you'll be able to install any other plugins just by clicking a checkbox. If you experience any issues with plugins installation, don't hesitate to ask at Support Foru

jmeter-plugins.org


① 사이트에 접속해서 plugins-manager.jar 클릭해서 jar 파일을 다운로드 받는다.


② 다운로드 받은 jar 파일을 apache-jmeter-5.4.3/lib/ext 경로에 넣어준다.

 

 

3. 실행 및 설정

 

① 터미널에서 apache-jmeter-5.4.3/bin에 있는 jmeter를 실행시켜주자

 


② 다음과 같이 jmeter가 실행된 것을 확인할 수 있다.

 


③ Threads 선택

 


Ultimate Thread Group에서 우클릭해서 Sampler → HTTP Request 선택

 


Ultimate Thread Group에서 우클릭해서 Listener 선택 (View Results Tree, Summary Report, Transactions per Second)

 


⑥ Thread Schedule 설정하기

 

Start Threads Count 내가 보낼 thread 수
Startup Time, sec 입력하는 시간(단위 : 초)동안 thread 점진적으로 증가
Hold Load For, sec 입력하는 시간(단위 : 초)동안 thread 유지
Shutdopwn Time 입력하는 시간(단위 : 초)동안 thread 점진적으로 감소

 


 

HTTP Request에서 테스트를 진행할 server를 입력해주고 실행하면 끝!