Once you have configured the Data Collector,
you can complete the following steps to configure the Tomcat Data
Collector to run as a Windows service.
- Open the <AppServer_home>/bin/catalina.bat file.
- Right-click the Tomcat Service icon on the Windows taskbar and click Configure.
- When the Apache Tomcat properties window opens, click the Java™ tab.
- From the open catalina.bat file, copy the value for JAVA_OPTS,
and paste it into the text box labeled Java Options
(in the Apache Tomcat Properties window).
- Then paste the following text into the text box labeled Java Options, copying the exact
settings from the JAVA_OPTS line of the catalina.bat file::
Xbootclasspath/p:
%PRODUCT_HOME%\itcamdc
\lib\ext\tomcat\bcm\tomcat.bcm.jar -Dam.appserver=%APPSERVER% -Dam.nodename
=%NODENAME% -Djava.rmi.server.RMIClassLoaderSpi=com.ibm.tivoli.itcam.tomcat
.sdc.DCRMIClassLoaderSpi -Dappserver.platform=%PLATFORM% -Dam.home
=%PRODUCT_HOME%\itcamdc -Ditcam61.home=%PRODUCT_HOME% -agentlib:
am_sun_15 -DArm40.ArmTransactionFactory=com.ibm.tivoli.itcam.toolkit.arm.j2.
transaction.Arm40TransactionFactory -DITCAMfJ2=true -DArm4EventListener.
0=com.ibm.tivoli.itcam.dc.event.ARM4TransactionDataHandler -Dcom.ibm.tivoli.
transperf.instr.probes.impl.was.Globals.traceLevel=0 -Dorg.omg.
PortableInterceptor.ORBInitializerClass.com.ibm.tivoli.itcam.dc.
orbinterpretor.Initializer -Xloggc:"E:\TOMCA5~1\DC\tomcat123-gc-log.log.
ibmtest" -Djava.security.policy=E:\TOMCA5~1\DC\runtime\tomcat123.tivoli.us.
abc.com.ibmtest\tivu15.cn.ibm.com.ibmtest.datacollector.policy
- Go to the Control Panel, click System, and click the Advanced
tab.
- Click Environment Variables.
- Under System variables, add <DC_home>\toolkit\lib\winntto
the Path variable. (Replace <DC_home> with
the real path for the Data Collector installation directory.)
- Add the new variables QUALDIRand CCLOG_COMMON_DIR. Specify
the values that are in catalina.bat file.
- Restart Windows.