Page tree

Skip to end of metadata
Go to start of metadata
  1. Open a command prompt and navigate to the %WORKING_DIR%\calculator directory.
  2. Run the following command:
    mvn -Dmaven.test.skip=true clean install jtest:monitor
    You should see BUILD SUCCESS at the end of the output.
  3. A %WORKNG_DIR%\calculator\target\jtest\monitor folder that contains a monitor.zip file will be created in the previous step. Unzip the contents of monitor.zip into %WORKING_DIR%. This will create a monitor folder in %WORKING_DIR%.
  4. 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"
  5. 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.


  • No labels