성능 측정 시 부하 모니터링 및 이슈 검토를 위해서 Scouter를 사용하고 있다.
jennifer 대체용
기존 v0.3.8 에서 v0.4.22로 변경하면서 설정 (conf) 변경사항 정리
1. Scouter Download
https://github.com/scouter-project/scouter
2. 설치 내용
- server (Collector)
- agent ( host / tomcat agent)
- client ( monitoring agent, windows)
3. Configuration
1) Server Config
./server/conf/scouter.conf
# Agent Control and Service Port(Default : TCP 6100) net_tcp_listen_port=6100 # UDP Receive Port(Default : 6100) net_udp_listen_port=6100 # DB directory(Default : ./database) db_dir=./database # Log directory(Default : ./logs) log_dir=./logs |
2) Host agent Config
./host.agent/scouter.conf
# Scouter Server IP Address (Default : 127.0.0.1) net_collector_ip=xxx.xxx.xxx.xxx # Scouter Server Port (Default : 6100) net_collector_udp_port=6100 net_collector_tcp_port=6100 # Scouter Name(Default : tomcat1) obj_name=WAS1 # Log directory(Default : ./logs) log_dir=./logs |
3) tomcat agent Conf
./{tomcat_instance}/scouter/conf/scouter.conf
# Scouter Server IP Address (Default : 127.0.0.1) net_collector_ip=xxx.xxx.xxx.xxx # Scouter Server Port (Default : 6100) net_collector_udp_port=6100 net_collector_tcp_port=6100 # Scouter Name(Default : tomcat1) obj_name=tomcat1 # JDBC Query(Default : true) profile_sql_escape=false profile_thread_cputime_enabled=true trace_interservice_enabled=true
|
4. tomcat agent 적용 방법
tomcat ( Catalina options 추가 )
export CATALINA_OPTS="..... |
[기존 버전 대비 변경사항 정리]
AS-IS |
TO-BE |
server_addr= |
net_collector_ip |
server_udp_port= |
|
server_tcp_port= |
net_collector_tcp_port |
scouter_name= |
obj_name |