1. Open a SHELL or CMD Window and Source the RTI Environment.
    Linux - . <rti_install_dir>/setup
    . /opt/ocsystems/rti/ee64/setup
    # Substitute your RTI Install Directory as needed
    Windows: Open an RTI CMD Window
    Start→All Programs→RTI→RTI Enterprise CMD
  2. Enable the Tomcat or JBoss Instance for monitoring: rti edit –t {tomcat | jboss} ${APP_HOME}
    su - # get write access
    . /opt/ocsystems/rti/ee64/setup 
    rti edit -t tomcat /opt/apache-tomcat-7.0.16
    rti edit -t jboss /opt/jboss-6.0.0.Final
    rti edit -t fuse /opt/jboss-fuse-6.0.0.redhat-024   
  3. Start or restart your application, RTI is now enabled and monitoring performance.
  4. Verifying RTI is monitoring performance:
    . /opt/ocsystems/rti/ee64/setup
    rti get_collectors 
    jboss_ecommerce jboss    # collector ID<tab>type
    Then, get_collector_processes [-h] [-a] -c COLLECTOR_ID
    rti get_collector_processes -c jboss_ecommerce
    15407
    # RTI is monitoring running process 15407
    Sanity check the process is running
    ps -wwCp 15407
    
    PID   TTY      STAT   TIME COMMAND
    15407 ?        Sl   289:46 java 
    -Xbootclasspath/a:/opt/ocsystems/rti/ee64/lib64/ocsarm.jar:/opt/ocsystem
        s/rti/ee64/lib64/arm40.jar
    -Drti.collector.id=jboss_ecommerce 
    -Drti.trans.factory=org.opengroup.arm40.sdk.ArmTransactionFactoryImpl 
    -Docs.arm.logger.adapter=com.ocsystems.arm.logger.DefaultOcsArmLogger 
    -Xbootclasspath/a:/opt/ocsystems/rti/ee64/lib64/spj.jar:/opt/ocsystems/rt
        i/ee64/lib64/asm-all-3.1.jar 
    -agentpath:/opt/ocsystems/rti/ee64/lib64/libspjagent.so=log-agent=
    /var/opt/ocsystems/rti/ee64/log/jboss_ecommerce,log=
    /var/opt/ocsystems/rti/ee64/log/jboss_ecommerce,config=
    /var/opt/ocsystems/rti/ee64/cfg/jboss_ecommerce/startup/JBoss.cfg 
    -Dspj.library.name=/opt/ocsystems/rti/ee64/lib64/libspjagent.so 
    -server -Xms128m -Xmx512m -XX:MaxPermSize=256m 
    -Dorg.jboss.resolver.warning=true 
    -Dsun.rmi.dgc.client.gcInterval=3600000 
    -Dsun.rmi.dgc.server.gcInterval=3600000 
    -Djava.net.preferIPv4Stack=true -Dprogram.name=run.sh 
    -Djava.library.path=/opt/jboss-6.0.0.Final/bin/native/lib64 
    -XX:CompileCommand=exclude,org/jboss/deployment/JARDeployer,accepts 
    -Djava.endorsed.dirs=/opt/jboss-6.0.0.Final/lib/endorsed 
    -classpath /opt/jboss-6.0.0.Final/bin/run.jar org.jboss.Main 
    -c ecommerce -g LoadTestPartition -b 0.0.0.0
    


loading table of contents...