Troubleshoot JIM Issue
Troubleshoot JIM Issue in JIM Agent Installation & Configuration Guide.
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 check | Where to check | How to check (command) |
|---|---|---|
| Target Box | ps -aef | grep java | grep <application keyword> |
| Jaeger Box | curl -ku admin:admin https://<opensearch ip>:<port> |
| Target Box | telnet <jaeger box> <jaeger port> |
| Target Box | Confirm with the client if the application is running. |
| Jaeger Box | docker/podman logs -f <jaeger container id> |
| Target Box | cat agent-cache.properties |
| - | - |
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.