본문 바로가기
java

tomcat9 jmx jconsole 연결 옵션

by 후린트 2024. 5. 8.
반응형

tomcat9은 톰캣7, 8 버전과는 다르게 별도로 라이브러리를 추가할 필요가 없다. 
톰캣 실행시 옵션을 추가하면 된다. 


톰캣 9 문서
https://tomcat.apache.org/tomcat-9.0-doc/monitoring.html

 

Apache Tomcat 9 (9.0.89) - Monitoring and Managing Tomcat

Monitoring is a key aspect of system administration. Looking inside a running server, obtaining some statistics or reconfiguring some aspects of an application are all daily administration tasks. Note: This configuration is needed only if you are going to

tomcat.apache.org


tomcat9 VM args 옵션 (별도의 인증없을때)

 -Dcom.sun.management.jmxremote.port=10001 
 -Dcom.sun.management.jmxremote.rmi.port=10002  
 -Dcom.sun.management.jmxremote.ssl=false 
 -Dcom.sun.management.jmxremote.authenticate=false

인텔리 J에서 tomcat runner 플러그인으로 톰캣 설정을 하게 되면 
VM args항목에 위의 내용을 추가하면 된다.


Jconsole 연결 화면 
127.0.0.1:10001(jmxremote.port)

 

 

 

 

 

tomcat7이나 tomcat8설정은 아래 페이지 참고

https://www.lesstif.com/java/apache-tomcat-jmx-monitoring-20776824.html

 

아파치 톰캣(apache tomcat) 을 jmx 로 monitoring 하기

monitorRole readonly controlRole readwrite

www.lesstif.com

 

 

반응형