Closed INAUGURATE-Ryong closed 7 months ago
우선 질문을 잘 올려주셨습니다. 좋은 시도였어요.
agent - 컨트럴러간 통신은 아래 가이드에 따라 진행 하셔야 합니다. 16001 ...
https://github.com/naver/ngrinder/wiki/Installation-Guide#prerequisite
강사님 말씀대로 16001도 포트포워딩 후 실행했더니 동일한 에러가 발생하여, 혹시몰라 vi ~/.ngrinder_agent/agent.conf IP수정 WSL 내부 IP로 했더니.
agent.controller_host=172.27.121.71
agent.controller_port=16001
2024-02-28 15:39:43,662 INFO agent config: NGRINDER_AGENT_HOME : /home/awya5/.ngrinder_agent
2024-02-28 15:39:43,797 INFO starter: ***************************************************
2024-02-28 15:39:43,798 INFO starter: Start nGrinder Agent ...
2024-02-28 15:39:43,798 INFO starter: ***************************************************
2024-02-28 15:39:43,798 INFO starter: JVM server mode is disabled.
2024-02-28 15:39:43,851 INFO starter: connecting to controller 172.27.121.71:16001
2024-02-28 15:39:43,906 INFO agent controller daemon: The agent controller daemon is started.
2024-02-28 15:41:57,569 ERROR agent controller: Error while connecting to agent controller server at /172.27.121.71:16001
vi ~/.ngrinder_agent/agent.conf 재수정
common.start_mode=agent
agent.controller_host=192.168.0.29
agent.controller_port=16001
agent.subregion=
agent.owner=admin
#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=
수정 후 성공했습니다.
결과 까지 공유해주셔서 감사합니다. 핵심은
그리고 챙겨야 하는건 위 링크건 공식 가이드의 포트 설명
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=
2024-02-28 15:14:34,299 INFO agent controller: Connected to agent controller server at /192.168.0.29:8080 2024-02-28 15:14:34,299 INFO agent controller: Waiting for agent controller server signal 2024-02-28 15:14:34,308 INFO agent controller: agent controller communication is shutdown 2024-02-28 15:14:34,312 ERROR agent controller: Exception whilst sending message. This error is not critical if it doesn't occur much.