Previous Topic

Next Topic

Book Contents

Book Index

Launching in Profiling Mode

Launching in profiling mode will allow sending information about resource consumption in the JVM from the remote OSGi framework to Eclipse.

The information is conveniently shown in the friendly visual interface of the mBProfiler (if installed). Profiling will allow you to optimize the operation of their OSGi-aware application.

To profile an OSGi framework remotely, make sure the JVM on the target device supports profiling and there is a profiling agent in the platform.

To profile the remote OSGi framework along with specific bundles from the workspace, similarly to running it in plain mode as described in the previous section:

  1. Open the remote OSGi framework launch configuration by using the Profile As > Profile Configurations option from the context menu on a selected project.
  2. In the mBProfiler tab configure the parameters of the profiling session.
  3. In the Bundles tab, make sure you have included the relevant bundles from the workspace and from the target platform.
  4. Click the Profile button to trigger the profiling session.
  5. Confirm remote JVM restart.

On success, the mBProfiler perspective will be opened with the profiling information being currently collected and displayed. The information will be communicated over default port 5115 as shown below.