Skip to content

Introduction

Introduction in JIM Agent Installation & Configuration Guide.

3 min read Updated SS MR

Introduction#

The Java Instrumentation and Monitoring (JIM) agent is a tool designed to observe and analyze Java applications using bytecode instrumentation. It provides valuable insights such as method execution times, method parameters, stack traces, and any exceptions. Both the JIM agent and the client applications run on the target server, with one JIM agent instance dedicated to monitoring one application instance.

The JIM agent sends a detailed code analysis to the OTEL collector. The OTEL collector processes this data and stores it in the OpenSearch database.

Grafana offers a user-friendly interface to visualize the collected data. The OTEL collectors, OpenSearch, Jaeger Query API, and Grafana are all included in the HEAL installer package.

Architecture#

These components work together to provide comprehensive monitoring and analysis of Java applications.

JIM Architecture
JIM Architecture

Supported Frameworks#

The JIM agent supports a wide variety of libraries and frameworks, including but not limited to:

Library/Framework Versions
Akka HTTP 10.0+
Apache Axis2 1.6+
Apache CXF JAX-RS 3.2+
Apache CXF JAX-RS Client 3.0+
Apache CXF JAX-WS 3.0+
Apache Dubbo 2.7+ (not including 3.x yet)
Apache HttpAsyncClient 4.1+
Apache HttpClient 2.0+
Apache RocketMQ 4.8+
Apache Tapestry 5.4+
Apache Wicket 8.0+
Armeria 1.3+
AsyncHttpClient 1.9+
AWS Lambda 1.0+
AWS SDK 1.11.x and 2.2.0+
Cassandra Driver 3.0+
Couchbase Client 2.0+ and 3.1+
Dropwizard Views 0.7+
Elasticsearch API 5.0+
Elasticsearch REST Client 5.0+
Finatra 2.9+
Geode Client 1.4+
Grails 3.0+
Google HTTP Client 1.19+
Grizzly 2.0+ (disabled by default)
gRPC 1.6+
GWT 2.0+
Hibernate 3.3+ (not including 6.x yet)
HttpURLConnection Java 8+
http4k † 3.270.0+
Hystrix 1.4+
JAX-RS 0.5+
JAX-RS Client 2.0+
JAX-WS 2.0+ (not including 3.x yet)
Java Http Client Java 11+
JDBC Java 8+
Jedis 1.4+
Jersey 2.0+ (not including 3.x yet)
JMS 1.1+
JSP 2.3+
Kafka 0.11+
Kubernetes Client 7.0+
Lettuce 4.0+
Log4j 1 1.2+
Log4j 2 2.11+
Logback 1.0+
Metro 2.2+ (not including 3.x yet)
Mojarra 1.2+ (not including 3.x yet)
MongoDB Driver 3.1+
MyFaces 1.2+ (not including 3.x yet)
Netty 3.8+
OkHttp 3.0+
Play 2.4+ (not including 2.8.x yet)
Play WS 1.0+
RabbitMQ Client 2.7+
Ratpack 1.4+
Reactor 3.1+
Reactor Netty 0.9+
Rediscala 1.8+
Redisson 3.0+
RESTEasy 3.0+
RMI Java 8+
RxJava 1.0+
Servlet 2.2+
Spark Web Framework 2.3+
Spring Batch 3.0+
Spring Data 1.8+
Spring Scheduling 3.1+
Spring Web MVC 3.1+
Spring Webflux 5.0+
Spring Web Services 2.0+
Spymemcached 2.12+
Struts2 2.3+
Twilio 6.6+ (not including 8.x yet)
Undertow 1.4+
Vaadin 14.2+
Vert.x 3.0+
Vert.x RxJava2 3.5+
Akka HTTP 10.0+

Note: The JIM agent is validated for Spring, Hibernate frameworks, and Oracle JDBC drivers. Additionally, the JIM agent has been tested on the Tomcat server, WAS, WebLogic, and JBoss.

System Condition Specifications#

Before performing the prerequisite steps for the JIM agent, ensure the following conditions are met, respectively:

1. Java Version: Confirm the Java version used across all applications involved in the transaction journey.

2. Application Framework: Specify the framework in use (for example: Spring Boot, Jakarta EE, etc.).

3. Number of Java Applications or Microservices: List all Java applications or microservices contributing to the transaction journey.

4. Sequence Diagram: Provide a sequence diagram that outlines the transaction flow through the architecture system.

5. Architecture Diagram: Share an architecture diagram to understand the overall system design.

6. API Details at Each Microservice Level: Include details of the API endpoints (if they need to be captured), such as the request body and response body.

7. Deployment Environment: Specify the deployment environment—whether the applications are running on Kubernetes, containers, or virtual machines (VMs).

8. Application Server: Identify the application server being used.

For Example: Tomcat, JBoss, WebSphere, etc.

9. Load Balancer or Reverse Proxy: Confirm the involvement of a load balancer or reverse proxy in the transaction journey.

10. Custom Instrumentation: If any custom instrumentation is required, provide the following details:

  • Fully qualified class names (class name with package name).
  • Method signatures (method name with input parameters, return value, and access modifier).

11. Additional Information: Ensure to share if any other applications, middleware, or networking setup specifics might affect instrumentation.

For example: Proprietary message brokers and specific firewall rules.

12. JVM Argument and Security Configuration Requirements:

a. JVM Argument: Provide the complete JVM argument used to run the application.

For example:

/usr/lib/jvm/java-17-openjdk-amd64/bin/java -XX:MaxMetaspaceSize=512m --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.lang.invoke=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.prefs/java.util.prefs=ALL-UNNAMED --add-opens java.base/java.nio.charset=ALL-UNNAMED --add-opens java.base/java.net=ALL-UNNAMED --add-opens java.base/java.util.concurrent.atomic=ALL-UNNAMED -Dfile.encoding=UTF-8 -Duser.country=IN -Duser.language=en -Duser.variant -cp /home/user/.gradle/wrapper/dists/gradle-<version>-bin/7jzzequgds1hbszbhq3npc5ng/gradle-<version>/lib/gradle-launcher-<version>.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon <version>

b. Application Server Security Settings: Verify whether Java Security is enabled at the application server level.

For example: Policy files, custom security providers, or restrictions affecting instrumentation.