If there is a startup script for your application, edit
the customized script before running the Configuration Tool.
Specify the following two anchors in the customized script to correctly
locate the appropriate section of the script and insert the configuration
of the Data Collector into the startup script:
- In the startup script, use a new line to define the ITCAM_DC_SCRIPT anchor as follows before the execution of the java command:
- On Windows systems, REM ITCAM_DC_SCRIPT
- On Linux and UNIX systems, ### ITCAM_DC_SCRIPT
When the configuration tool runs, it inserts configuration of
the Data Collector after this anchor.
- Add the ITCAM_JVM_OPTS anchor as the last JVM
option in the customized script. Find where the JVM options are set
and insert the anchor:
- On Windows systems, %ITCAM_JVM_OPTS%
- On Linux and UNIX systems, ${ITCAM_JVM_OPTS}
Place the anchor as the last JVM option, before the main class %MAINCLASS% in the J2SE JVM startup options.
Important: Any existing Garbage Collection (GC) logging
argument or Java™ security policy
will be overwritten after the configuration process.
Examples:
%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS%
-Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%"
-Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%"
-Djava.io.tmpdir="%CATALINA_TMPDIR%" %ITCAM_JVM_OPTS% %MAINCLASS%\
%CMD_LINE_ARGS% %ACTION%