Installation on Non-Kubernetes (VM) Hosts
Installation on Non-Kubernetes (VM) Hosts in JIM Agent Installation & Configuration Guide.
Installation on Non-Kubernetes (VM) Hosts#
Prerequisites#
- Agent binary – opentelemetry-javaagent-1.33.6.jar (Java 21).
- Network – Ensure outbound TCP 4317 from the host to the HEAL OTLP collector.
- Permissions – Confirm that the service account can read/execute the JAR file and restart the JVM process.
- The installation of HEAL must be successful.
- JIM agent must be installed on the target server.
Configuration#
1. Configure the agent-cache.properties file located under the JIM agent directory.
Edit the agent-cache.properties file with the required values for each attribute. This file contains multiple sections, each with its own set of attributes:
Note: The values should not contain space or special characters at the start and end of the values.
| Attribute | Value |
|---|---|
| OpenTelemetry Agent Configuration | |
otel.traces.exporter | The value is based on your data format. For example: OTLP. |
otel.exporter.<data format value>.endpoint | http://localhost:4317 Enter the host where the OTEL collector is running, and for the port, enter the Jaeger/OTLP receiver port configured in the OTEL config file. Endpoint values: otel.expoter.otlp.end point or otel.expoter.jaeger.end point. * Ensure the required ports are open at the endpoint. |
otel.metrics.exporter | * None |
otel.resource.attributes | service.name=<service-name>,agent.uid=<jim-agent>,instance.uid=<jim-instance> |
For example:
| Attribute | Value |
|---|---|
| OpenTelemetry Agent Configuration | |
otel.traces.exporter | jaeger |
otel.exporter.jaeger.endpoint | http://192.0.2.59:14250 |
otel.metrics.exporter | None |
otel.resource.attributes=service.name | Tomcat_232,agent.uid=JIMAgent_232,instance.uid=Tomcat_comp_Instance |
2. Check for SSL certificates.
Consult with the application or client team to determine if the application uses any SSL certificates.
3. Ensure the ingest pipeline is present in OpenSearch; if not, follow the below steps:
Execute the following command to create an ingest pipeline and apply it to indexes in OpenSearch for data visualization in Grafana (ensure the jim_pipeline.sh has the latest file):
sh jim_pipeline.sh <opensearch_userid:password> <opensearch_host:port> <data_retention_days_count>
4. Update the Grafana IP address, port number, and Jaeger data source name in JIM Audit Dashboard.json, JIM Summary Dashboard.json, and JIM Deep Dive.json files.
"links": [
{
"targetBlank": false,
"title": "Open Trace",
"url": "http://<Grafana IP>:<Grafana Port>/explore?orgId=1&left=[\"${ from}\",\"now\",
\"<Jaeger DS>\",{\"query\":\"${ data.fields[\"Trace ID\"]}\"}]"
}
],
5. Update the value for the "script" attribute in the following block in the JIM Summary Dashboard.json file.
"metrics": [
{
"field": "thread_cpu_time",
"id": "1",
"settings": {
"script": "_value*<x>"
},
"type": "avg"
}
],
<x>: Get the value as follows.
a) Login to the target server where the JIM agent is running.
b) Execute the following command.
ls cpu
c) The output of the above command contains the frequency of the CPU in the MHz attribute.
d) <x> = (1 / (Frequency in MHz * 1000000))
6. Enable the Jaeger port (default 14250) from the target server to the Jaeger server.
7. Enable the OpenSearch port (default 9200) in the firewall in HEAL servers.
8. Open the Keycloak port from the target server.
Thread and Heap Dump Execution#
Note: Before execution of thread and heap dump, follow the above forensic configurations for non-Kubernetes and Kubernetes environment respectively.
This section provides details on querying command arguments and executing forensic actions using the HEAL Control Center API.
It includes SQL queries to retrieve command arguments from the database and corresponding API calls to trigger specific commands on the JIM Agent. These commands enable forensic analysis, such as fetching heap dumps and thread dumps, by passing the necessary parameters.
For thread dumps, below are the command arguments:
- isLockEnabled
- isSynchronisedEnabled
For heap dump, below are the command args:
- isLiveEnabled
For Example: Command Arguments Query
- ID: 29
Query: Retrieve Command Arguments for command_id=29
SELECT * FROM command_arguments WHERE command_id=29;
Based on your env update, add the command ID to your curl command
Expected Output:

* ID: 30
Query: Retrieve Command Arguments for command_id=30
SELECT * FROM command_arguments WHERE command_id=30;
Expected Output:

* ID: 31
Query: Retrieve Command Arguments for command_id=31
SELECT * FROM command_arguments WHERE command_id=31;
Expected Output:

API Calls for Command Execution#
API Call: Execute Forensic Action for command_id=30
curl -k --location 'https://192.0.2.62:9998/heal-controlcenter/v2.0/api/accounts/example/forensic-actions/bulk-trigger' \
--header 'Content-Type: application/json' \
--header 'Authorization: <TOKEN>' \
--data '{
"agentType": "JIMAgent",
"commandId": 30,
"serviceIdentifiers": ["Sample_App_Service"],
"commandIdentifier": "fetch_thread_dump",
"commandArguments": [
{
"key": "isLockEnabled",
"value": "true",
"isPlaceHolder": false,
"defaultValue": "true"
},
{
"key": "isSynchronisedEnabled",
"value": "true",
"isPlaceHolder": false,
"defaultValue": "true"
}
],
"argumentsMap": null
}'
API Call: Execute Forensic Action for command_id=31
curl -k --location 'https://192.0.2.62:9998/heal-controlcenter/v2.0/api/accounts/example/forensic-actions/bulk-trigger' \
--header 'Content-Type: application/json' \
--header 'Authorization: <TOKEN>' \
--data '{
"agentType": "JIMAgent",
"commandId": 31,
"serviceIdentifiers": ["Sample_App_Service"],
"commandIdentifier": "fetch_heap_dump",
"commandArguments": [
{
"key": "isLiveEnabled",
"value": "true",
"isPlaceHolder": false,
"defaultValue": "true"
}
],
"argumentsMap": null
}'
Note: Replace <TOKEN> with the appropriate authentication token before executing the API calls.