Skip to content

Case 1: JMX Port Configuration

Case 1: JMX Port Configuration in CA - WebLogic KPI Issues.

4 min read Updated SS RS

Case 1: JMX Port Configuration#

Ensure a valid JMX port is configured for collecting 2nd Level JVM KPIs. If JMX KPIs are not collected, check and configure the correct JMX port.

Case 2: Producer Configuration for Runtimes#

Runtime-specific producers: WebLogic KPIs differ for Hotspot and JRockit JVMs. Configure the default producer defaultID to 81 for the Hotspot runtime. Modify this in the DB (mst_producer_kpi_mapping) or in basic.properties, avoiding the wrong-URL approach.

Case 3: Unable to Collect WebLogic OOB KPIs#

A negative response time was observed for Min. Response Time in the OHS dashboard. The negative value is shown in the URL response-time table and not in all time ranges.

Solution:

1. To get Min. Response Time, select the Minimum response time field from the logscan raw index.

2. The URLs table in Grafana has some filter conditions.

3. After updating the filter conditions in the Min. Response Time query, the correct data was displayed on the dashboard.

WebLogic KPI Errors#

1. ProcessCPULoad KPI: enable the JMX port.

2. ThreadPool Queue Length KPI: set producer_id to 79.

3. HeapSizeCurrent, HeapFreeCurrent, HeapFreePercent KPIs: set the default producer based on the JVM (81 for Hotspot, 80 for JRockit).

Note: Changes in the DB make them global for all instances. Alternatively, modify agent-details.json with a wrong config-data URL in basic.properties so the details are not fetched back from Percona.

WebLogic Server Process CPU Load Data Collection Issue#

The issue was related to a JMX attribute — an AttributeNotFound exception — affecting collection of the processCPUload KPI.

Solution: the exception indicated that the ProcessCpuLoad MBean attribute was not exposed on the application server. Check with the application team; if the attribute is not exposed, the CA cannot detect the metric and no data is collected for this KPI.

WebLogic Component Level Data Collection Issue (PROD)#

Case 1: IOException Error#

An error occurred connecting to the JMX server for a specific URL, indicated by ComponentAgentScheduler error E1053. This was due to an IOException related to resolving the initial reference NameService, caused by an incorrect monitoring port provided for WebLogic.

Solution:

1. Delete the existing entries created during the component-instance addition in the UI.

2. This involved executing MySQL delete commands on tables like comp_instance, comp_instance_attribute_values, and comp_instance_kpi_details, targeting component instance ID 117.

3. After deleting these entries and adding the correct new port in the UI, the port was mapped to the host.

4. Restart both Keycloak and the CA.

5. Data collection for the WebLogic component KPIs then succeeds.

Case 2: Incorrect IP#

Data was being collected remotely, but the host address was mapped to the target IP, causing an SSH-port-missing error. Data was intended to be collected from HEAL by performing telnet to the target IP and port, which required the host address to be the HEAL IP where the CA is installed.

Solution:

1. Change the host address in agent-details.json to the HEAL IP.

2. Restart the CA in offline mode to apply the changes.

3. After these adjustments, WebLogic component data collection succeeds.

CA - GRPC Data Issues#

This section covers data-transmission failures between the CA and the GRPC endpoint / HAProxy.

Dropping Data Due to Failed GRPC Data Transmission#

Error: verify whether the following error appears in the CA logs:

2020-06-22 21:56:44.382 [ScheduledDataSender RUNNING] ERROR
c.a.a.c.core.util.GRPCClient:79 - Error during processing message from the queue [KPI-Data]
io.grpc.StatusRuntimeException: UNAVAILABLE: HTTP status code 503
  invalid content-type: text/html
  headers: Metadata(:status=503,content-length=107,cache-control=no-cache,content-type=text/html)
DATA-----------------------------
<html><body><h1>503 Service Unavailable</h1>
No server is available to handle this request.
</body></html>

Solution:

1. This occurs when the grpc.example / haproxy.example host entry is missing from /etc/hosts, or the host entries are wrong.

2. If the entry is present but data still cannot be sent, restart the GRPC / RabbitMQ service.

CA is unable to send data to GRPC#

Case 1: Incorrect Java (ALPN not configured)#

If OpenJDK Java is used, an ALPN is not configured properly issue occurs and the Component Agent cannot send data to GRPC:

ERROR c.a.a.c.core.util.GRPCClient:59 - Error occurred in grpc init method.
java.lang.IllegalArgumentException: ALPN is not configured properly.
  See https://github.com/grpc/grpc-java/blob/master/SECURITY.md#troubleshooting for more information.
  at io.grpc.netty.GrpcSslContexts.selectApplicationProtocolConfig(GrpcSslContexts.java:163)
  at io.grpc.netty.GrpcSslContexts.forClient(GrpcSslContexts.java:94)
  at com.appnomic.appsone.componentagent.core.util.GRPCClient.init(GRPCClient.java:45)

Follow the steps below to rectify the issue:

1. Create a folder inside the Component Agent and copy the following jar from the lib folder to the new folder:

netty-tcnative-openssl-static-2.0.7.Final-a1.jar

2. Go into the new directory and extract the jar:

jar -xf netty-tcnative-openssl-static-2.0.7.Final-a1.jar

3. A META-INF folder is generated. Inside META-INF/native, copy the libnetty_tcnative file matching the OS (RHEL, AIX, or Solaris) into the newly created folder.

4. In the selfhealconfig file, provide:

JAVA_CUSTOM_ARGS="-Djava.library.path=/home/ComponentAgent/<identifier>/netty"

5. Delete the log file and agent-details.json, then start the Component Agent.