IBM Tivoli Composite Application Agent for J2EE, Version 7.1.1

Configuring the Tomcat Data Collector to run as a Windows service

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.
  1. Open the <AppServer_home>/bin/catalina.bat file.
  2. Right-click the Tomcat Service icon on the Windows taskbar and click Configure.
  3. When the Apache Tomcat properties window opens, click the Java™ tab.
  4. 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).
  5. 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
  6. Go to the Control Panel, click System, and click the Advanced tab.
  7. Click Environment Variables.
  8. 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.)
  9. Add the new variables QUALDIRand CCLOG_COMMON_DIR. Specify the values that are in catalina.bat file.
  10. Restart Windows.


Feedback