Skip to main content

Posts

Showing posts from February, 2021

[AWS EC2] How to use jconsole and visualVM [2] (remote connect Linux server)

 this article explains how to set up id and password authentication so if you want to know how to use jconsole and visualVM Click below link  we have already figured out how to using it in previous article this article only explains how to set up authentication Modify setenv.sh   vi /usr/local/tomcat7/bin/setenv.sh   Open stenv.sh in your tomcat home directory through vi editor   #!/bin/sh JMX_OPTS=" -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=/usr/local/tomcat7/conf/jmxremote.password -Dcom.sun.management.jmxremote.access.file=/usr/local/tomcat7/conf/jmxremote.access -Djava.rmi.server.hostname=52.79.134.63 -Dcom.sun.management.jmxremote.ssl=false" CATALINA_OPTS=" ${JMX_OPTS} ${CATALINA_OPTS}"   and modify as above   looking closer, the value of '-Dcom.sun.management.jmxremote.authenticate' has been modified from false to true and below code has been added -Dcom.sun.manag...