i have java application running in tomcat8 , have jolokia.jar 1 of java agent options catalina_opts. want 1 more metrics collector added catalina_opts. how can 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 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 not sure if can use multiple java agents. if can point me on how include multiple java agents
you can. add multiple arguments each specifying agents. agents activated in order specified on command line:
java -javaagent:foo.jar=arg1 -javaagent:bar.jar=arg2 ...
java_opts
or cataline_opts
are alternative ways of specifing on command line.
Comments
Post a Comment