Java Intrusive Agent Setting
Modes and advanced settings of the Java Intrusive Agent, with the navigation path to reach them.
Classic Control Center
This section explains about the Java Intrusive Agent settings. Different modes of the Java Agent and its advanced setting are explained in the following topics.
Navigation Path#
Java Intrusive Agent Settings section can be reached by the following steps
1. Log on to HEAL Control Center UI.
2. Click on Setup tab and select Monitoring.

3. Select the Services option in Manage pane.
4. Setup Services screen is displayed. Click on the ‘Service’ for which the Agent Settings need to be configured.

5. Manage Service - <Service Name> opens on Configuration > Instances.

6. Select Java Intrusive Agent option in Agent Settings section.
7. Java Intrusive Agent Settings page is displayed as follows

Data Collection Modes#
Java Agent collects data in different modes namely Auto, Verbose and Switch off Monitoring modes. You can manage the Java Agent’s operating modes from the Control Center UI instead of logging on to the Target Servers.
Auto Mode with Medium Snapshot Collection Level is the default Java Agent Settings. To change the Data Collection Mode settings, follow below steps
1. Navigate to the Java Intrusive Agent settings. Refer Navigation Path.
2. Select the required Data Collection Mode.
a. Refer Auto Mode, Verbose Mode, Switch Off Monitoring for the details of each mode.
3. Click Save to update or save the changes done.
Note: All the changes done in the Java Intrusive Agent section, are applicable to all the Java Agents that are mapped to the selected service. Applying a specific setting for the selected Java Agent is not supported.
Auto Mode#
Java Agent’s default and smart mode of operation is the Auto Mode. In the Auto mode, Java Agent and HEAL intelligently manage Request data collection and Snapshot collection on Slow and Failed Requests. The level of Snapshots captured by the agent can be of three levels, which defines the number of snapshots to be captured and its duration.
User can select the levels, but the number of snapshots and duration is fixed.
| Snapshot Collection Level | Default? | No. Of Snapshot Collected per Minute | Duration in Minutes |
|---|---|---|---|
| Low | No | 5 | 5 |
| Medium | Yes | 10 | 10 |
| High | No | 20 | 20 |


Verbose Mode#
Java Agent’s Verbose mode as the name suggests provides more details in the form of increased code snapshots. The Code snapshots are collected continuously along with the Request data collection. Java Agent does the code snapshot collection irrespective of the JVM health and Request status (Good, Slow, and Failed).
Java agent collects the Code Snapshot for the set duration and returns to Auto mode without manual intervention.
| No. Of Snapshots Collected per Minute | Default? | Duration in Minutes | Duration Options available |
|---|---|---|---|
| 50 per minute | Yes | 5 | 1 & 10 |


Caution: Caution is required while switching to the Verbose mode as this brings overhead on the JVM being monitored. It is strongly recommended to avoid using Verbose mode unless it is extremely necessary.
Switch Off Monitoring#
Java Agent data collection monitoring of Requests and Code snapshots can be paused by using the ‘Switch Off Monitoring’ mode. You can stop the data collection until the mode is changed to ‘Auto’ or ‘Verbose’.
Note: In the Switch Off Monitoring mode, the Java Agent continues to instrument the code. The capturing or collection of Requests and Snapshots is paused. Java Agent cannot be stopped or switched off completely, until the JVM itself is stopped.

Advanced Settings#
Java Agent’s Advanced settings option is coupled with the Auto mode. It is not applicable to Verbose and Switch Off Monitoring modes. As advanced management of the Java Agent, you can do either of the following
- Stop the Snapshot collection for exception/failed requests.
- Pause the Request and Snapshot collection when the set threshold is breached for the JVM’s CPU and Memory Utilization.

1. Stop Snapshot Collection
Java Agent stops the Snapshot collection for the Slow and Failed requests in the Auto Mode, if you select Don’t collect snapshots for exceptions / failed requests box in the Advanced Settings of Auto Mode.
Enabling this option does not collect the snapshots intentionally as set. Enable this option only if required, as the deep dive data is not made available for any RCA walks in case of any issues or application performance degrade.
2. Pause Data Collection
Java Agent is capable of self-pausing, when the JVM process’ CPU and/or Memory utilization breaches the threshold set in the Advanced Settings of Auto Mode. This self-pausing helps the Agent to stop adding any additional overhead to the JVM when the CPU, Memory is beyond the threshold. Request data collection and Code snapshot collection is paused when the threshold is breached.
Java Agent is capable of capturing the CPU and Memory of JVM using its libraries that are not dependent on other Agents or modules of HEAL. When the set threshold is violated for three consecutive occurrences, Agent pauses the data collection. Resource utilization continues to be monitored and when the violation drops for three consecutive occurrences, the data collection is resumed.
Note: When the snapshot collection and data collection is stopped or paused by selecting the above options, HEAL monitoring data loss is incurred but the JVM’s health is given priority. Hence the call on Data or JVM health is required to be taken.