Config Data Retrieval Issues
Config Data Retrieval Issues in CA Operational Issues.
Config Data Retrieval Issues#
Case 1: Read-Timeout Connecting to Keycloak#
1. Read-timeout exception:
java.net.SocketTimeoutException: Read timed out.
2. Cause: the CA cannot contact the Control Center within the configured timeout.
3. Solution: configure timeouts in advanced.properties:
ds.server.connection.request.timeout=960
ds.server.socket.timeout=480
Case 2: Component Instances Not Updated in agent_details.json#
1. Newly added components/KPIs do not appear in agent_details.json.
2. Solution: change configOperationMode to Remote in agent-details.json for immediate updates.
Note: Restarting the CA without deleting the old
agent-details.jsondelays updates. Restart Keycloak for immediate new KPI updates.
Custom JDBC Producer#
1. Group KPI auto-discovery limitation: JDBC producers cannot be used for group-KPI auto-discovery.
2. Recommended alternative: use shell producers with Oracle/MySQL clients for scenarios requiring group KPIs.
3. Reasoning: a JDBC producer results in a ResultSet with one column for KPI_name and another for its value, which cannot accommodate group-KPI keys.
4. Useful points:
- JDBC producers are inappropriate for group KPIs.
- The producer query output should comprise a single row.
- The query output should represent
KPI_name. - The parameter section should match the WHERE-clause conditions.
- If there is no WHERE clause, the parameter section can be omitted.
Windows CA: Self-heal Issue#
1. Issue: self-heal is not functioning in the Windows Component Agent.
2. Solution:
- Configure the correct settings in the Supervisor and Component Agent folders.
- Specify the Supervisor Agent ID, HA IP & port for the SupervisorController (Keycloak), and the
key.pubpath. - Maintain the required folder structure.
- Use the
config.vbsfile to set CPU/MEM thresholds, actions, and persistence for self-heal.
Collecting Component Agent Data (IBM WebSphere, OpenJDK 11 Incompatibility)#
The Component Agent was unable to collect data. The CA logs displayed several warnings and errors:
WARNING: Illegal reflective access by com.google.protobuf.UnsafeUtil
(.../lib/protobuf-java-3.4.0.jar) to field java.nio.Buffer.address
SEVERE: Service ScheduledMinuteProducerInstances [FAILED] has failed in the RUNNING state.
java.lang.NoClassDefFoundError: com/ibm/CORBA/iiop/ORB
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:422)
Errors also appeared in the KPI logs showing incorrect instance lists received from the agent:
ERROR com.appnomic.appsone.pipeline.kpi.function.map.FlatMapToKPI - received
incorrect instance list from the agent [CA_GLS_APP_2], hence ignoring the
following kpi Message. agentUid: "CA_GLS_APP_2"
Solution:
1. The root cause was the use of OpenJDK 11, which is incompatible with the IBM WebSphere component (specifically the missing com.ibm.CORBA classes).
2. Switch to IBM Java, which is compatible with the IBM WebSphere component.
3. After changing to IBM Java, data collection was resolved and the target CA began sending data.
High Memory Usage by Agent on RHEL OS#
The agent was experiencing high memory usage.
Solution:
1. The tablespace KPI was consuming significant memory, with utilization increasing daily around 9:00–9:30 PM.
2. This coincided with the database team's backup activity, which likely delayed the JDBC-producer query.
3. After discussion with the Product Development team and the end user, data collection was scheduled for 7 AM daily to avoid conflict with the backup window.
4. Update the KPI's cron expression in the Control Center or Percona mst_kpi_details to run at 7 AM daily, reducing memory usage during backup hours.
Listen Port Status Incorrectly Showing as Down#
Issue: the port-availability status incorrectly shows as down despite the port being up.
Case 1: this can occur when more than one CA is running on the target server.
Issue with Component Stopping on AIX Server#
The component stops by itself on the AIX server, with a NullPointerException reported.
Solution: check the database for entries related to the Component Agent:
select * from component_agent where id=<Agent ID>;
A manual insertion is required if the entries for a particular agent are missing:
insert into component_agent values
(id,848,2,utc_timestamp(),utc_timestamp(),
'7640123a-fbde-4fe5-9812-581cd1e3a9c1',79,79,2);
After inserting the record, restart the services.
Apache Server Startup Issue Due to Load Module#
Follow the steps below to rectify the issue:
1. Download and install Lynx for Apache HTTPD 1.3: ensure Apache HTTPD 1.3 is compatible with the Lynx browser.
2. Download the Apache 1.3 binary:
wget https://archive.apache.org/dist/httpd/apache_1.3.41.tar.gz
3. Extract the file:
tar -zxvf apache_1.3.41.tar.gz
4. Configure Apache:
cd apache_1.3.41
./configure --prefix=/usr/local --add-module=src/modules/standard/mod_status.c
Modify the /usr/local prefix as needed, and apply the same change in subsequent steps.
5. Build Apache:
make
Note: For older Apache versions you might encounter errors like
error: conflicting types for 'getline'.
6. Resolve the 'getline' error if encountered:
a. Locate the .c file causing the error (for example, htdigest.c).
b. Find the file:
find . -name "htdigest.c"
c. Replace occurrences of getline with newgetline. In the vi editor:
:%s/getline/newgetline/
d. Re-run make. If the error persists, repeat for the new file causing the error.
7. Install the build:
make install
8. Configure httpd.conf:
a. Locate httpd.conf at /usr/local/etc/apache/httpd.conf.
b. Add the following at the end of the file:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from all
</Location>
c. Do not add ExtendedStatus on.
9. Validate the HTTPD configuration:
cd /usr/local/sbin
./httpd -S
If no errors occur, proceed.
10. Start HTTPD:
./apachectl start
11. Verify HTTPD status and logs:
ps -ef | grep httpd
# logs: /usr/local/var/apache/log
12. Check the server-stats page:
curl http://<IP>:<Port>/server-status?auto