Trying to instrument a copy of konakart with the following :
java version "1.7.0_75"
This app has been successfully instrumented with both newrelic and CA APM and trying the Splunk tool now
working settings:
#JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/konakart/wily/Agent.jar -Dcom.wily.introscope.agentProfile=/opt/konakart/wily/core/config/IntroscopeAgent.profile"
# ---- New Relic switch automatically added to start command on 2017 Jun 14, 00:15:53
#NR_JAR=/opt/konakart/newrelic/newrelic.jar; export NR_JAR
#CATALINA_OPTS="$CATALINA_OPTS -javaagent:$NR_JAR"; export CATALINA_OPTS
snippet from the catalina.sh using the splunkagent.jar
I have tried both:
#JAVA_OPTS="$JAVA_OPTS -javaagent:splunkagent.jar"
Also:
SP_JAR=splunkagent.jar; export SP_JAR
CATALINA_OPTS="$CATALINA_OPTS -javaagent:$SP_JAR=/opt/konakart/SplunkJavaAgent/config/splunkagent.properties"; export CATALINA_OPTS
In the catalina.out i see the following:
Error opening zip file or JAR manifest missing : splunkagent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Well ,quite simply, you do not have splunkagent.jar on the classpath.
So make sure that the jar file is in a directory that is on the classpath.
I have tried the splunkagent.jar in several locations such as
/usr/java/lib
/opt/konakart/lib
[root@KONAKART SplunkJavaAgent]# java -jar splunkagent.jar -v
no main manifest attribute, in splunkagent.jar
IT was actually a problem with the jar file .. downloaded another instance and thats working - cheers for your fast response.