nGrinder
JAVA 설치
$ sudo apt update
$ sudo apt upgrade
# JAVA11 설치
$ sudo apt install openjdk-11-jre-headless
# ~/.bashrc 열기
$ vi ~/.bashrc
# ~/.bashrc 파일에 설정 추가
# JAVA_HOME settings
export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))
export PATH=$PATH:$JAVA_HOME/bin
# 현재 실행중인 shell에 즉시 적용 (새로 실행한 shell에서는 필요없음)
$ source ~/.bashrc
# 설정 확인
$ echo $JAVA_HOME
/usr/lib/jvm/java-11-openjdk-am64
nGrinder Controller 서버 설정
# nGrinder Controller 설치
$ wget https://github.com/naver/ngrinder/releases/download/ngrinder-3.5.5-20210430/ngrinder-controller-3.5.5.war
# 실헹
$ java -XX:MaxPermSize=200m -jar ngrinder-controller-3.5.5.war
# [ip:8080] 접속
초기 ID/PWD 는 admin
nGrinder Agent 서버 설정
$ scp -i "keyfile" ngrinder-agent-3.5.1-p1-54.180.101.195.tar username@(ec2인스턴스주소):~/
$ wget http://[server ipo]:8080/agent/download/ngrinder-agent-3.5.5.tar
$ sudo tar xvf ngrinder-agent-*.tar
$ cd ngrinder-agent
$ sudo vi __agent.conf
common.start_mode=agent
agent.controller_host=[Controller IP주소]
agent.controller_port=16001
agent.subregion=
agent.owner=
#agent.host_id=
#agent.server_mode=true
# provide more agent java execution option if necessary.
#agent.java_opt=
# provide more agent jvm classpath if necessary.
#agent.jvm.classpath=
# set following false if you want to use more than 1G Xmx memory per a agent process.
#agent.limit_xmx=true
# please uncomment the following option if you want to send all logs to the controller.
#agent.all_logs=true
# some jvm is not compatible with DNSJava. If so, set this false.
#agent.enable_local_dns=false
# please uncomment the following option if you want to run controller_to_agent connection mode agent.
#agent.connection_mode=controller_to_agent
#agent.connection_port=14000
# set following with the ip you want to broadcast yourself. Set this option if the agent needs to be discovered as public ip.
#agent.broadcast_ip=
$ ./run_agent.sh
pinpoint도 연동해보셈 개꿀임