How to monitor a Tomcat JVM in Introscope

Home > Search > How-to
  by

Add the following options to each Tomcat JVMs setenv.sh file. The setenv.sh file will be locate at tomcat_home/profiles/jvm_name/bin/setenv.sh. Replace "introscope_home" with the path where Introscope is installed, such as /opt/introscope/.

INTROSCOPE_AGENT="-javaagent:introscope_home/wily/Introscope/Agent.jar"
INTROSCOPE_PROFILE="-Dcom.wily.introscope.agentProfile=introscope_home/wily/Introscope/core/config/IntroscopeAgent.profile"
INTROSCOPE_AGENTNAME="-Dcom.wily.introscope.agent.agentName=<jvm name>"

 

Ensure the variables are listed in the JVM_OPTS variable.

JVM_OPTS="$INTROSCOPE_AGENT $INTROSCOPE_PROFILE $INTROSCOPE_AGENTNAME"

 

Ensure the other variables are properly formatted.  In this example, another variable is missing the closing double-quote, this could cause the JVM to be missing from Introscope.

MQ_CLIENT_CIPHER="-Dcom.ibm.mq.cfg.useIBMCipherMappings=false

 

The introscope_home/wily/Introscope/core/config/IntroscopeAgent.profile file should have the following, at minimum. Replace "your_hostname" and "your_port" with the hostname and port of your Introscope server.

introscope.agent.customProcessName=Tomcat
introscope.changeDetector.rootDir=introscope_home/wily/Introscope<version>/wily/change_detector
introscope.agent.enterprisemanager.transport.tcp.host.DEFAULT=your_hostname
introscope.agent.enterprisemanager.transport.tcp.port.DEFAULT=your_port

 

Restart the Tomcat JVM for any changes to take effect.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments