01-27-2012 01:10 PM
How do I intrument tomcat to automatically start Java Probe in redhat? In debian I've attached the parameter into the /etc/init.d/tomcat script and it work fine but it doesnt seem to work in red hat.
Tomcat start fine but it doesnt autostart the Javaprobe. Any advice is greatly appreciate
Dunno if it make any different when tomcat run i get the following
Using CATALINA_BASE: /opt/tomcat
Using CATALINA_HOME: /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME: /usr
Using CLASSPATH: /opt/tomcat/bin/bootstrap.jar
my first reaction is the JRE_HOME is not set....does that make a different?
Also when i run ./jreinstrumenter.sh -a /usr/java
Sun 1.6.0_30 (/usr/java/jdk1.6.0_30/jre)
Sun 1.6.0_30 (/usr/java/default/jre)
Sun 1.6.0_30 (/usr/java/latest/jre)
how do i know which one to use? I tested the top 2 and it didnt seem to work
Solved! Go to Solution.
01-27-2012 01:15 PM
I've also try passing the instrumentaion as:
02-01-2012 08:22 AM
Here are the step I've too:
First I had to set JAVA_HOME and PATH in /etc/profile
Second the way I declare the JAVA_OPTS was wrong (correct way is JAVA_OPTS="$JAVA_OPTS -javaagent"
Third I notice that the jreinstrumenter result for xbootclass return the following
The above path fail when i execute it which is why my script been failing to start the javaagent, I've change it to