I have a java application running in tomcat8 and have jolokia.jar as one of the java agent options to Catalina_opts. Now I want one more metrics collector to be added to this catalina_opts. How can I add it?
Current Catalina_opts
CATALINA_OPTS="$CATALINA_OPTS $CATALINA_OPTS_APPEND -javaagent:$JWS_HOME/lib/jolokia.jar=port=xxxx,protocol=https,clientPrincipal=cn=system:masterproxy,useSslClientAuthentication=true,extraClientCheck=true,host=0.0.0.0,discoveryEnabled=false"
What I want
CATALINA_OPTS="$CATALINA_OPTS $CATALINA_OPTS_APPEND -javaagent:$JWS_HOME/lib/jolokia.jar=port=xxxx,protocol=https,clientPrincipal=cn=system:masterproxy,useSslClientAuthentication=true,extraClientCheck=true,host=0.0.0.0,discoveryEnabled=false -javaagent:./jmx-0.9.jar=1234:config.yaml"
I am not sure if we can use multiple java agents. If so can anyone point me on how to include the multiple java agents