파일 설치
jmeter-plugin-manager
open-jdk
apache-jmeter
경로 설정
- oepn-jdk를 다운받고 압축 해제.
- 압축 해제한 파일 jdk-11.0.2 폴더를 로컬디스크c 밑에 놓기
- 시스템 환경 변수 편집 들어가기
- 고급 -> 환경 변수 -> 시스템 변수 -> path 더블 클릭
- 새로 만들기 클릭

jmeter 실행
- 설치한 apache-jmeter 압축 해제
- 폴더에 들어가서 bin 폴더 안에 jmeter.bat 실행
- 만약 실행이 안되면 위의 환경 변수를 잘못 잡아준 것.

- 이런 창이 실행됨.
- 부하 테스트를 하기 위한 툴임.
- 여러명의 사용자를 몇초에 걸쳐서 몇번 테스트 할지 커스텀 할 수 있음.
- 시중에 Ddos 공격이 이 프로그램과 비슷함.
thread 설정
- 가장 왼쪽에 물병 모양처럼 나와있는 text plan 오른쪽 마우스 클릭

- Add -> Threads (Users) -> Thread Group 클릭

Number of Threads
Ramp-up period (seconds)
- 해당 접속자 수를 몇 초 안에 접속시킬 것인지
Loop Count
-
설정한 접속자 수를 몇번 반복시켜서 실행할 것인지
-
쉽게 말하면 10, 1, 2 로 설정했다면 10명의 유저가 1초안에 2번 요청을 보내게 설정한 것이다.
HTTP Request 설정

- 위에서 만든 Thread Group에 오른쪽 마우스
- Add -> Sampler -> HTTP Request 클릭

Server Name or IP
Port Number
HTTP Request
- 어떠한 HTTP method를 실행하고 싶은지, 그리고 어떤 url에 접속하게 하고 싶은지를 설정
- Postman 같은 tool을 써본 사람들은 쉽게 설정할 것이라고 믿어 의심치 않음.
로그 보기

- 위에서 만든 HTTP Request에 오른쪽 마우스
- Add -> Listener -> View Results in Table
- Add -> Listener -> Summary Report
- Add -> Listener -> View Results in Table
결과

- 보낸 request들의 상태와 걸린 시간을 체크할 수 있다.

- 전송 속도, 총 요청 갯수 등등 자세한 정보도 확인 가능하다.