Skip to main content
Version: 25.0.0

Apache Tomcat

Please refer to the Waratek Proposed Directory Structure section in this document for assistance with the steps below.

Basic Configurations

  1. Go to <absolute-path-to-tomcat>/bin.

  2. Open (or create if it doesn’t already exist) setenv.sh (Linux) or setenv.bat (Windows) file.

  3. Set Waratek options (the property file can use any name):

    • On Linux:
JAVA_OPTS="-javaagent:/opt/waratek/agent/waratek.jar -Dcom.waratek.WaratekProperties=/opt/waratek/conf_*/<name of property file> $JAVA_OPTS"
  • On Windows:
set JAVA_OPTS=-javaagent:<absolute-path-to-waratek-software>\\agent\\waratek.jar -Dcom.waratek.WaratekProperties=<absolute-path-to-waratek-software>\\<conf_*>\\<name of property file> %JAVA_OPTS%
  1. Restart the Tomcat server. The server must be restarted for the changes to take effect.