Capture Database Tracking on Java Applications with OSGI Bundles



Overview

This issue occurs in the following circumstances:

  1. An organization installs the vFunction Agent on a Java Monolith that includes OSGI Bundles
  2. The organization hooks the Agent into the Application’s Startup Parameters and confirms that the Agent is profiling the Application
  3. When the organization uses the Application to interact with a database, unexpectedly, the Database Tracking cannot be seen in the vFunction Analysis
  4. After modifying the Database Tracking mechanism, the Database Tracking still cannot be seen in the vFunction Analysis
  5. There are no errors in the vFunction logging’s vfagent.log.dbtracking nor in the Application’s logging
  6. When downloading the Measurement, there are no Database Tracking entries in the var-PART#.csv

Steps to Resolve

Take the following steps to resolve this issue:

  1. To the location where the vFunction Startup Parameters were added to the application, add these additional Parameters
-Dorg.osgi.framework.bundle.parent=app
-Dorg.osgi.framework.bootdelegation=vfrtshadow.*,com.vfunction.*
  1. Restart the Application and test Database interactions again