JIM Agent
OpenTelemetry Java agent that traces transactions and streams spans to the collector.
JIM Agent (Java Instrumentation Module)#
| Property | Details |
|---|---|
| What it is | An OpenTelemetry-based Java agent for distributed tracing — captures every transaction/request flowing through the application |
| Installed as | Java agent JAR (heal-jim-opentelemetry-javaagent.jar) injected into the app's JVM via -javaagent flag |
| Runs as | Inside the application's JVM process (not a separate process) |
| Communication | gRPC directly to OTEL Collector (http://<otel-collector>:14250) — does NOT go through HAProxy |
| Data it collects | Traces — individual transaction spans (HTTP requests, DB queries, method calls) |
| Purpose | Distributed tracing — see how requests flow through the application, find slow transactions, identify bottlenecks |
| Configured in CC | Setup → Agent → JIMAgent → Service mapping (no Data Communication section — it sends directly to OTEL Collector) |
Install & configure →
What the JIM Agent Captures#
| Trace Data | Description | Where It Shows |
|---|---|---|
| HTTP Requests | Every inbound HTTP request (URL, method, status code, duration) | HEAL UI → Transactions |
| Database Queries | SQL queries executed (query text, duration, connection pool) | HEAL UI → Transaction Drilldown |
| External Calls | Outbound HTTP/REST calls to other services | HEAL UI → Transactions → Dependencies |
| Method Execution | Key framework method entry/exit (Spring, Servlet, etc.) | HEAL UI → Transaction Drilldown → Spans (span store backed by Jaeger) |
| Errors/Exceptions | Stack traces captured when exceptions occur | HEAL UI → Transactions → Errors |
| Request Duration | End-to-end response time for each request | HEAL UI → Transactions → Response Time |
How It Works (Injection Chain)#
1. Java process starts (e.g., Tomcat)
2. Monitor-JVM's libhealagent.so intercepts the JVM launch (via ld.so.preload)
3. Monitor-JVM injects: -javaagent:/home/heal/Agent/JIMAgent/heal-jim-opentelemetry-javaagent.jar
4. The OpenTelemetry agent instruments 188+ libraries automatically (Servlet, JDBC, Spring, etc.)
5. Each HTTP request creates a "trace" with one or more "spans"
6. Traces are exported via gRPC to OTEL Collector → Jaeger/OpenSearch
7. HEAL platform processes traces and shows them in the Transaction view
Data Flow#
App (Tomcat) → JIM Agent (inside JVM) → gRPC:14250 → OTEL Collector (192.0.2.65)
↓
OpenSearch (storage)
↓
Jaeger (span store)
↓
HEAL UI (Transactions view)
Key Files#
/home/heal/Agent/JIMAgent/
├── heal-jim-opentelemetry-javaagent.jar # The OTel Java agent
├── config/
│ └── Apache_Tomcat_198.51.100.6_8084_agent-cache.properties # Per-instance config
│ - otel.traces.exporter=jaeger
│ - otel.exporter.jaeger.endpoint=http://192.0.2.65:14250
│ - service.name=Apache_Tomcat_198.51.100.6_8084
│ - agent.uid=<agent-uid>
└── logs/ # JIM agent logs
Verification#
ps -ef | grep javaagent.*heal-jim | grep -v grep
# Should see: -javaagent:/home/heal/Agent/JIMAgent/heal-jim-opentelemetry-javaagent.jar
Next
- JIM Agent Installation & Configuration — the deep install-and-configure guide.
- Monitor-JVM — injects the JIM agent into the JVM at launch.
- Agents & Connectors Overview — see how the JIM Agent fits with the rest of the fleet.