## Servlet session |
previous | up | next

If the session type in the application settings dialog is set to "Servlet", the following settings are displayed in the middle part of the dialog:

- Java VM
  Choose the Java VM to run JProfiler's integrated Apache Tomcat. Java VMs are configured on the "Java VMs" tab of JProfiler's general settings which are accessible by clicking the [General settings] button on the bottom of the dialog.
- Tomcat HTTP port
  Select the port on which the integrated Apache Tomcat will listen for HTTP requests. After you open a servlet session, a web browser pointing to `http://localhost:[port]` will be opened.
- Path to web.xml
  Select the `web.xml` file associated with your web project. Your web project will be mounted as the Tomcat root context. If you leave this path empty, the default root context of JProfiler's integrated Apache Tomcat will be profiled. By clicking on the [...] button you can bring up a file chooser to select a `web.xml` file.
- Context path
  If your web application requires a different context path, you can enter it here.

The integrated Tomcat is located in the `tomcat` directory of your JProfiler installation. JProfiler modifies `conf/server.xml` on every start of a servlet. The first `Context` that is found in this file is modified.

Note: This session type is for demonstration purposes only. To profile your own installation of Tomcat or other application servers, please use the application server integration wizards available on the `New session` tab of the start center.