mvn -Dmaven.test.skip=true clean install jtest:monitor -Djtest.publish
Open the %WORKING_DIR%\monitor folder and run the agent.bat script. A command window will open and display a JVM arg string to add to your Tomcat server startup process:
-javaagent: "C:\Working\CAM\monitor\agent.jar"=settings="C:\Working\CAM\monitor\agent.properties",runtimeData="C:\Working\CAM\monitor\runtime_coverage" |
Create a batch file in your Tomcat installation to use this information:
%TOMCAT_DIR%\bin\setenv.bat Add "set CATALINA_OPTS=%CATALINA_OPTS% " followed by the javaagent string above to the batch file and save changes. set CATALINA_OPTS=%CATALINA_OPTS% -javaagent:"C:\Working\CAM\monitor\agent.jar"=settings="C:\Working\CAM\monitor\agent.properties",runtimeData="C:\Working\CAM\monitor\runtime_coverage" |
This should all be added in a single string.