mule-opentelemetry-module icon indicating copy to clipboard operation
mule-opentelemetry-module copied to clipboard

Mule 4: Opentelementry upgrade from 1.2.0 to 1.5.0 results in DB connection exhaustion

Open molabus2 opened this issue 1 year ago • 2 comments

Our Mule 4.4 application currently employs OpenTelemetry version 1.2.0. However, upon upgrading to version 1.5.0, we encountered an issue where the application exhausts its database connections (Oracle) after handling the initial requests successfully. It appears that the database connections are not being released properly for some unknown reason. We're using mule DB Connector to call DB stored procedures (db:stored-procedure).

molabus2 avatar Feb 13 '24 00:02 molabus2

@molabus2 OpenTelemetry module does not use anything from any connections. It works purely based on the notifications generated by the mule runtime. I don't see any reason for opentelemetry module causing this. Do you see anything in the logs or resource (thread/cpu) consumption? Has anything else changed - runtime, dependencies, app resource configuration?

manikmagar avatar Feb 13 '24 02:02 manikmagar

@molabus2 I forgot about one change in 1.15.0. In addition to notifications, the module uses interceptors to capture processor spans. I am not sure how to quantify "initial requests" though. Could you provide any sample app that can reproduce this? Or, provide more details on your OpenTelementry global configuration and DB flow.

manikmagar avatar Feb 13 '24 16:02 manikmagar

I am closing this due to non-reproducibility and no activity.

manikmagar avatar Sep 10 '24 04:09 manikmagar