Adding -javaagent to Tomcat 6 server, where do I put it and in what format?

前端 未结 3 1531
栀梦
栀梦 2020-12-14 04:12

I´m trying to install an application health monitoring application that can monitor J2EE web transactions and I need to put a javaagent into my Tomcat somehow but am not cl

3条回答
  •  半阙折子戏
    2020-12-14 04:40

    Use JAVA_OPTS as CATALINA_OPTS would not allow JVM options [option2]=[value2].

    Example, for adding jacocoagent.jar with options as below, only JAVA_OPTS will work.

    JAVA_OPTS="${JAVA_OPTS} -javaagent:$CATALINA_HOME/lib/jacocoagent.jar=destfile=/tmp/jacoco.exec"
    

提交回复
热议问题