Capture Database Tracking on Java Applications with OSGI Bundles
Overview
This issue occurs in the following circumstances:
- An organization installs the vFunction Agent on a Java Monolith that includes OSGI Bundles
- The organization hooks the Agent into the Application’s Startup Parameters and confirms that the Agent is profiling the Application
- When the organization uses the Application to interact with a database, unexpectedly, the Database Tracking cannot be seen in the vFunction Analysis
- After modifying the Database Tracking mechanism, the Database Tracking still cannot be seen in the vFunction Analysis
- There are no errors in the vFunction logging’s vfagent.log.dbtracking nor in the Application’s logging
- 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:
- 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.*
- Restart the Application and test Database interactions again