Profile with Tomcat - prasadtalasila/BITS-Darshini GitHub Wiki
Profile with Tomcat
TO RUN USING TOMCAT8.5 AS RUNNING JVM
-
Press Ctrl+O to open Start Center. Under New-Session tab select New Server Integration. img/start_center.png
-
Select Apache Tomcat 7.* option as your server. img/server_name.png
-
Select Local mode from the next screen.
-
Now enter details of JVM, we are currently using Oracle JVM 1.8.0 img/jvm_vendor.png
-
Select the default option under Startup Mode.
-
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
-
Let the profiling port be default only unless you are already running some application on the port.
-
Check modifications and click on next.
-
Come to the last screen and click on finish. img/finished.png
-
Choose Instrumentation option from the pop-up window. img/instrumentation.png
-
Click on OK. Choose JVM exit action accordingly. Start the Profiler! img/start_screen.png
Keep the following points in mind to avoid errors.
- Make sure tomcat is not running before profiling.
- Appropriate permissions are provided to bin and lib folder of tomcat directory.