Skip to content

Troubleshoot JIM Issue

Troubleshoot JIM Issue in JIM Agent Installation & Configuration Guide.

2 min read Updated SS MR

Troubleshoot JIM Issue#

This section will help you troubleshoot issues with the JIM agent and its interaction with Jaeger and OpenSearch.

The basic data flow is as follows:

JIM Agent -> <Jaeger Host>:14250 -> <OpenSearch Host>:9200

In summary:

  • The JIM Agent collects span data from the Java application running on the target box.
  • The JIM Agent sends the span data to Jaeger on the Jaeger Host at port 14250.
  • Jaeger processes the span data and sends it to OpenSearch on the OpenSearch host at port 9200.

Please follow the guidelines and commands below to identify and resolve JIM issues.

What to checkWhere to checkHow to check (command)
  • What is the JDK version?
Target Boxps -aef | grep java | grep <application keyword>
  • Is OpenSearch running?
  • Is OpenSearch accessible from Jaeger?
Jaeger Boxcurl -ku admin:admin https://<opensearch ip>:<port>
  • Is Jaeger running?
  • Is Jaeger accessible from the target box?
  • Is telnet to Jaeger's 14250 port happening?
Target Boxtelnet <jaeger box> <jaeger port>
  • Is the application running?
  • Is it being used?
Target BoxConfirm with the client if the application is running.
  • Any OpenSearch-related errors in Jaeger logs?
  • Is any error code like "429 too many write requests" or "storage full, read_only_allow_delete" being shown in logs?
Jaeger Boxdocker/podman logs -f <jaeger container id>
  • Are any field value(s) missing?
  • Did wrong value(s) get stored in some field?
Target Boxcat agent-cache.properties
  • Was agent-cache.properties copied from a Linux box and pasted in Windows or vice versa?
--

Note: In case the telnet command is not available, try any of these commands:

curl telnet://<host>:<port>
echo "" >/dev/tcp/<host>/<port>

Dealing with Java Security AccessControlException#

There may be scenarios where even granting all permissions is not sufficient and additional permissions may be required. 

For example: You might encounter an error like this in the Jim logs:

Caused by: java.security.AccessControlException: Access denied ("java.lang.RuntimePermission" "getClassLoader")

In such cases, it's necessary to add the following permission in your security policy file:

permission java.lang.RuntimePermission "getClassLoader";

Depending on your application's requirements, you may also need to include additional permissions, such as the following:

permission java.io.FilePermission "*","read,write,execute";
permission javax.management.MBeanServerPermission "findMBeanServer";

Note: Follow your organization's security policy when modifying permission settings.