Skip to content

WebSphere Not Starting After Application Restart

WebSphere Not Starting After Application Restart in JIM Agent Issues.

5 min read Updated SS RS

WebSphere Not Starting After Application Restart#

After performing the prerequisites, JIM was functioning correctly with zero issues. However, after the restart of the application three days later, WebSphere failed to start. The application only started successfully after removing the JIM arguments.

Error from SystemErr Logs:

[11/2/22 15:24:01:873 IST] 00000001 SystemErr R java.security.policy: error adding Entry:java.net.MalformedURLException: no protocol: /export/home/appsone/HealAgent/JIMAgent/JIM_192.0.2.14/opentelemetry-javaagent-1.1.0-all.jar

RCA:

The issue was caused by a syntax error in the server.policy file, specifically in the line where the below file was mentioned.

opentelemetry-javaagent-1.1.0-all.jar

Solution:

1. Identify and Rectify Syntax Error:

a. Open the server.policy file and locate the line mentioning the opentelemetry-javaagent-1.1.0-all.jar file.

b. Correct the syntax error in this line. Ensure the path is correctly specified and follows the correct format.

2. Restart WebSphere: After correcting the syntax error, restart the WebSphere server to apply the changes.

Jaeger Nomad Status Issue#

Jaeger Nomad status showed unhealthy, although data collection was still occurring.

Solution:

1. Modify the Jaeger Nomad configuration by changing jaegerport to modelport.

2. Restart Jaeger service to restore healthy status.

JIM Waterfall Issue#

When clicking on the JIM TXN data trace ID, the JIM Waterfall page fails to open, displaying the following error:

Query Error: 404

JIM Waterfall Issue

RCA: The issue occurred due to a problem with the Jaeger service. Initially, the service was configured to run on two nodes. However, one of the nodes became non-operational, which caused the JIM Waterfall page to be inaccessible.

Solution: To resolve the issue, follow the below steps:

1. Modify the Jaeger service configuration to a single-node setup.

2. Restart the Jaeger service on the functioning node. After implementing the single-node setup, the JIM Waterfall page becomes accessible without errors.

UPI Jim Data: Multiple Traces Required#

Only a single trace is available in the UPI Jim data (Olive setup), which is insufficient for debugging.

Solution: Follow the below steps to rectify the issue:

1. Ensure the Hypertrace agent is configured for request and response capture to generate full traces.

2. For high data loads causing data drop issues, update the configuration by commenting out the following line in the agent-cache.properties file:

otel.instrumentation.common.default-enabled=true

Note: This reduces data load but may result in partial trace data, invalid parent span IDs, or missing flow details.

Example UI Issue#

After adding JIM-specific Java arguments, the Example UI was not working,

  • The WebSphere Application Server (WAS) started successfully, and transactions appeared in the HEAL dashboard.
  • However, the Example UI returned a 503 error.
  • No relevant logs for Opentelemetry were found in either Example or WAS logs. The WAS team had to revert the changes.

RCA:

  • Higher versions of JIM (e.g., 1.2.3) failed to initialize the client application, and no errors were logged.
  • Version 1.1.1 successfully resolves these issues while maintaining compatibility.

Solution:

1. Use the specific build provided by the development team:

  • Build Link: opentelemetry-javaagent-1.1.1-all.jar
  • MD5sum: 2197c134fe4dc8c22d0d376a8a08a72e

2. Note that version 1.1.1 contains only basic instrumentation code, as opposed to customized instrumentation in other versions. This version is working specifically for specific client and similar cases where JIM 1.2.3 fails.

3. Tested JIM 1.1.0, which worked fine but had known issues. These issues were addressed in JIM 1.1.1, so this version should be used moving forward.

JIM Traces Issues#

Case 1: Showing Query Error 404#

JIM traces are not visible, displaying a "Query error 404 not found."

Case 1: Showing Query Error 404

Solution:

The issue was resolved by stopping the Jaeger service and starting the Jaeger query image using the below command,

docker run

Follow the below steps to resolve the issue:

1. Stop the Jaeger Service: Ensure the Jaeger service is stopped before proceeding.

2. Start the Jaeger Query Image:

If the Jaeger index format is hourly, use the following command:

nohup podman run --network="host" -d --env=ES_TLS_SKIP_HOST_VERIFY=true --env=ES_SERVER_URLS=https://192.0.2.137:9250 --env=ES_USERNAME=admin --env=ES_PASSWORD=admin --env=ES_LOG_LEVEL=info --env=SPAN_STORAGE_TYPE=elasticsearch --env=ES_INDEX_ROLLOVER_FREQUENCY_SERVICES=hour --env=ES_INDEX_ROLLOVER_FREQUENCY_SPANS=hour --env=ES_TLS_ENABLED=true itps.heal:8091/jaeger-query:1.41 &

If the Jaeger index format is daily, use the following command:

nohup podman run --network="host" -d --env=ES_TLS_SKIP_HOST_VERIFY=true --env=ES_SERVER_URLS=https://192.0.2.137:9250 --env=ES_USERNAME=admin --env=ES_PASSWORD=admin --env=ES_LOG_LEVEL=info --env=SPAN_STORAGE_TYPE=elasticsearch --env=ES_TLS_ENABLED=true itps.heal:8091/jaeger-query:1.41 &

3. Additional Configuration:

  • The issue is related to the model port of Jaeger (14250), not the Jaeger build.
  • If Jaeger and OTEL are running on different servers, there is no need to use the Jaeger query build.
  • If Jaeger and OTEL run on the same server, consider changing the Jaeger model port to avoid conflicts.

Case 2: JIM Traces Not Accessible for Non-Admin Users#

Non-admin users were unable to access the Explore option in JIM traces. The issue stems from insufficient permissions, as non-admin users require at least Editor role permissions.

Solution: Verify if the non-admin user has access to the Explore option. If not, proceed with the following steps.

1. Log in as an admin.

2. Navigate to Administrator → Users.

3. Change the user's role from Viewer to Editor and save.

Note:

If granting the Editor role enables users to edit dashboards, update permissions as below:

  • Navigate to the folder containing the dashboards.
  • Go to the Permissions tab.
  • Change the user's permission to View instead of Edit to restrict dashboard modifications.

JIM Configuration Issue for Monitoring Multiple Tomcat Instances on a Single Server#

Requirement to monitor multiple Tomcat instances on the single host while collecting component data and traces.

Solution:

1. Monitor the First Tomcat Instance: Add the following arguments to the application start script:

export CATALINA_OPTS ="$CATALINA_OPTS
-Djava.rmi.server.hostname=192.0.2.138
-Dcom.sun.management.jmxremote=true
-Dcom.sun.management.jmxremote.port=9087
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-javaagent:/Heal/Agents/jim-agent/heal-jim-opentelemetry-javaagent-1.2.3.jar
-Dotel.javaagent.configuration-file=/Heal/Agents/jim-agent/config/agent-cache.properties"

The above scripts enables to collect the component data.

2. Collect the JIM trace data for both components: Create separate agent-cache.properties files for each instance.

For Example: agent-cache.properties

otel.resource.attributes=service.name=Pre-Prod-App,agent.uid=661a2451-ba76-478b-ac2f-66fa743f95fd,instance.uid=198.51.100.14_MySql

Pass the respective configuration file as an argument in the Tomcat start script for each instance.

3. To display Tomcat 2 data in the UI, an additional service and instance were created under the same host. A separate JIM agent to be configured for this service.

4. Since the identifiers for the agent, instance, and service name are specified in the agent-cache.properties file, these values must differ between the two configuration files.

5. In the Tomcat 2 application startup script, the agent-cache.properties2 file should be passed as an argument. However, the same JAR file path can be used for both components.