Profile with Tomcat - prasadtalasila/BITS-Darshini GitHub Wiki

Profile with Tomcat

TO RUN USING TOMCAT8.5 AS RUNNING JVM

  1. Press Ctrl+O to open Start Center. Under New-Session tab select New Server Integration. img/start_center.png

  2. Select Apache Tomcat 7.* option as your server. img/server_name.png

  3. Select Local mode from the next screen.

  4. Now enter details of JVM, we are currently using Oracle JVM 1.8.0 img/jvm_vendor.png

  5. Select the default option under Startup Mode.

  6. Choose the local start script. Default location is /opt/tomcat/bin/startup.sh(Permissions must be provided to be able to access bin folder of tomcat directory) img/start_script.png

  7. Let the profiling port be default only unless you are already running some application on the port.

  8. Check modifications and click on next.

  9. Come to the last screen and click on finish. img/finished.png

  10. Choose Instrumentation option from the pop-up window. img/instrumentation.png

  11. Click on OK. Choose JVM exit action accordingly. Start the Profiler! img/start_screen.png

Keep the following points in mind to avoid errors.

  1. Make sure tomcat is not running before profiling.
  2. Appropriate permissions are provided to bin and lib folder of tomcat directory.