Skip Headers

# Accessing Oracle DMS Profiler Data Using the DMS Spy Servlet

Previous

Next

Once your DMS enabled TopLink application is running, you can access the DMS data it is collecting.

The DMS Spy servlet is available in all Java processes that use DMS. It lets you monitor metrics for a single Java process from a Web browser.

To access DMS data directly using the DMS Spy servlet, do the following:

1. Ensure that the `dms.jar` file is in your application classpath.

   By default, the `dms.jar` file is located in `<ORACLE_HOME>``\lib`.

2. Set the following system properties for the DMS enabled Java process you want to monitor:

       oracle.dms.publisher.classes=oracle.dms.http.Httpd
       oracle.dms.httpd.port.start=<port>

   where `<port>` is the HTTP port on which DMS accepts requests (the default value is 46080).

3. Apply the system property changes by restarting the Java process you want to monitor.

4. Using a Web browser, connect to the Java process and access the Spy servlet by entering the following URL:

       http://<host>:<port>/dms0/Spy

   where `<host>` is the host name of your Java process and `<port>` is the value specified by the `oracle.dms.httpd.port.start` system property.

   The Spy servlet displays all TopLink DMS-enabled objects appropriate for the current DMS level setting. Figure: DMS Spy Servlet Display shows an example of the DMS Spy servlet display.

   DMS Spy Servlet Display

   Description of "DMS Spy Servlet Display"