wildfly版本10,pinpoint版本1.8.4
set "JAVA_OPTS=%JAVA_OPTS% -Djboss.modules.system.pkgs=org.jboss.logmanager,com.navercorp.pinpoint.bootstrap,com.navercorp.pinpoint.common,com.navercorp.pinpoint.exception"
set "JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:D:/soft/wildfly-10.0.0.Final2/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.3.Final.jar"
set "JAVA_OPTS=%JAVA_OPTS% -Xbootclasspath/p:D:/soft/wildfly-10.0.0.Final2/modules/system/layers/base/org/jboss/log4j/logmanager/main/log4j-jboss-logmanager-1.1.2.Final.jar"
--此处修改jar包的路径 “D:/soft/wildfly-10.0.0.Final2”
set "JAVA_OPTS=%JAVA_OPTS% -javaagent:D:/soft/wildfly-10.0.0.Final2/pinpoint-agent-1.8.4/pinpoint-bootstrap-1.8.4.jar"
set "JAVA_OPTS=%JAVA_OPTS% -Dpinpoint.agentId=wiki-192.168.10.204" --Dpinpoint.agentId此处为应用编码+ip,长度不能超过24
set "JAVA_OPTS=%JAVA_OPTS% -Dpinpoint.applicationName=wiki" --此处为应用编码
在wildfly运行参数中添加上述参数,
linux下修改bin下的standalone.conf
windows下修改standalone.conf.bat
来源:CSDN
作者:jiangdaquan
链接:https://blog.csdn.net/jiangdaquan/article/details/103992972