IBM Tivoli Composite Application Manager for Application Diagnostics, Version 7.1.0.1

Configure the Tomcat data collector to run as a Windows service - J2EE Agent

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:
    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. In the text box labeled Java Options, replace the variables %PRODUCT_HOME%, %APPSERVER%, %PLATFORM%, and %NODENAME% with the actual values. You can use the sample text from step 4, E:\TOMCA5~1\DC, ibmtest, tomcat123, and tivoli.us.abc.com respectively.

  7. Go to the Control Panel, click System, and click the Advanced tab.

  8. Click Environment Variables.

  9. Under System variables, add <DC_home>\toolkit\lib\w32-ix86 to the Path variable. (Replace <DC_home> with the real path for the data collector installation directory.)

  10. Add the new variables QUALDIRand CCLOG_COMMON_DIR. Specify the values that are in catalina.bat file.

  11. Restart Windows.


Parent topic:

Customization and advanced configuration for the data collector

+

Search Tips   |   Advanced Search