The approach inspectIT Ocelot takes for instrumenting is fundamentally different from the approach of most other JVM instrumentation agents. InspectIT Ocelot does not instrument classes when they are loaded, the instrumentation is performed purely asynchronous in the background.
In this background task inspectIT Ocelot essentially looks at every loaded class and performs an instrumentation if required by the active configuration. Hereby, the agent manages the classes he has to analyze in a queue. This queue is processed in batches to ensure that no CPU resources are blocked if they are required by the instrumented application. The batching is configurable using the
# settings for fine-tuning the instrumentation process
# the time to pause between executing batches of class instrumentation updates
# defines how many classes are checked at once for updates of their configuration per batch
# defines the maximum number of classes which are instrumented per batch
# defines how often the agent should check if new classes have been defined.
# defines how often the new class discovery is performed after a new class has been loaded
In addition, the size of the instrumentation queue can be used as an indicator for the instrumentation progress. It is accessible via the self-monitoring of the agent.