rafal-szypulka / grafana-ibm-apm

Grafana datasource plugin for IBM APM
MIT License
28 stars 15 forks source link

High CPU usage on ITM #55

Open juliocmog opened 1 year ago

juliocmog commented 1 year ago

Hello!

We are using this plugin (https://grafana.com/grafana/plugins/ibm-apm-datasource/) on Grafana v8.5.21 connected with ITM TEPS v6.3.7 SP13. We are able to fetch real time and historical data, but on every query we see CPU usage on TEPS and TEMS get higher and doesnt come down after metric is fetch, we see also the CPU usage increase for the agent process/service on the client/agent server and doesnt come down after metric is fetch or after we switch in Grafana to another server/client. It appers that the query keeps running forever. To workaround the issue we have to kill Java TEPS process /opt/IBM/ITM/lx8266/iw/java/bin/java then restart TEPS. The "Deallocate dataset after every metric query" is enabled. Any idea? Thank you!

juliocmog commented 1 year ago

When I open Grafana dashboard and load metrics for a server, I noticed SQL query in loop in TEPS logs, it is repeating same SQL query apparently forever..

ckam11 commented 1 year ago

Hi!

We have Grafana 8.5.5 connected to ITM 6.3.0.7 Service Pack 10 and the CPU accumulates when we fetch metrics from IIS agent. Many ActiveMQ exceptions are present in TEPS system* logs.

Also, we have the same workaround.

Regards.

ckam11 commented 1 year ago

Hi,

The error message is as follows: 'Unable to find the InitialContextFactory org.apache.activemq.jndi.ActiveMQInitialContextFactory.'.: nested exception is: javax.naming.NoInitialContextException: Unable to find the InitialContextFactory

Any idea?

Thank