Skip to main content
Jump to: navigation, search

Difference between revisions of "Profile On Server Help Page"

(Setting up a server instance)
(Profile a web application in servers view)
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
'''Note''': TPTP has been tested with [http://tomcat.apache.org/ Apache Tomcat] version 5.x and above. Other servers and versions have not been tested.  
 
'''Note''': TPTP has been tested with [http://tomcat.apache.org/ Apache Tomcat] version 5.x and above. Other servers and versions have not been tested.  
 +
 +
  
 
== Prerequisite ==  
 
== Prerequisite ==  
Line 24: Line 26:
  
 
A server instance must be created to allow profiling support. For details on server setup and management, please refer to Eclipse help – [http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tcreate.html Creating, editing and deleting servers.]
 
A server instance must be created to allow profiling support. For details on server setup and management, please refer to Eclipse help – [http://help.eclipse.org/help32/index.jsp?topic=/org.eclipse.wst.server.ui.doc.user/topics/tcreate.html Creating, editing and deleting servers.]
 +
 +
  
 
== Profile a web application in servers view ==
 
== Profile a web application in servers view ==
Line 29: Line 33:
 
Follow these steps to run your web application on a server instance in profile mode. Note that a server instance must be already configured in the servers view.
 
Follow these steps to run your web application on a server instance in profile mode. Note that a server instance must be already configured in the servers view.
  
# In servers view, select the target server instance, right click and select Profile in context menu. The status of the server will change to Starting....
+
# In '''Servers view''', select the target server instance, right click and select '''Profile''' in context menu. The status of the server will change to Starting....
 
# As soon as the server instance is started, Profile on Server dialog is opened.
 
# As soon as the server instance is started, Profile on Server dialog is opened.
# In Profile on Server dialog, select the server process under the Agents tab and move it to the Selected Agents list.
+
# In Profile on Server dialog, select the Profiler and click '''Edit Options''' to configure filter for the profiling session.
# Switch to Monitor tab, configure the profiling options and filter.
+
# Select the profiling analysis type of the profiler and click '''Edit Options''' to configure the analysis type, if applicable.
# Click on the Destination tab. ProfileProject and Default Monitor are the default profiling resources and they will be used to store data in this profiling session.
+
# Click Profile to start the profiling session.
# Click Finish to start the profile.
+
# When prompted to switch perspective, click '''YES''' to switch to the profiling perspective.
 +
# Server is now in '''profiling''' state.
 +
 
 +
 
 +
-------------
 +
←[[TPTP|Back to TPTP wiki page]]

Latest revision as of 18:25, 22 December 2008

Profiling an application on a server

TPTP has integrated with Web Tools Project (WTP) to bring you the profile on server function. With this function you can profile your web application similar to how you run or debug in servers view seamlessly.

Note: TPTP has been tested with Apache Tomcat version 5.x and above. Other servers and versions have not been tested.


Prerequisite

TPTP-WTP integration requires the following projects installed in an Eclipse installation:

For version information of each driver, please refer to the requirements section of the TPTP download page.


If installation is done via Software Updates, makes sure the following components under Testing and Performance category is selected in the installation list:

  • TPTP Platform Project
  • TPTP Tracing and Profiling Tools Project
  • TPTP Profiling for Web applications


Setting up a server instance

A server instance must be created to allow profiling support. For details on server setup and management, please refer to Eclipse help – Creating, editing and deleting servers.


Profile a web application in servers view

Follow these steps to run your web application on a server instance in profile mode. Note that a server instance must be already configured in the servers view.

  1. In Servers view, select the target server instance, right click and select Profile in context menu. The status of the server will change to Starting....
  2. As soon as the server instance is started, Profile on Server dialog is opened.
  3. In Profile on Server dialog, select the Profiler and click Edit Options to configure filter for the profiling session.
  4. Select the profiling analysis type of the profiler and click Edit Options to configure the analysis type, if applicable.
  5. Click Profile to start the profiling session.
  6. When prompted to switch perspective, click YES to switch to the profiling perspective.
  7. Server is now in profiling state.



Back to TPTP wiki page

Back to the top