Apache Tomcat
Please refer to the Waratek Proposed Directory Structure section in this document for assistance with the steps below.
Basic Configurations
-
Go to
<absolute-path-to-tomcat>/bin.
-
Open (or create if it doesn’t already exist)
setenv.sh
(Linux) orsetenv.bat
(Windows) file. -
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%
- Restart the Tomcat server. The server must be restarted for the changes to take effect.