quantum-core icon indicating copy to clipboard operation
quantum-core copied to clipboard

Performance issue / holding reference to binaries

Open elvanja opened this issue 3 years ago • 3 comments

Hi,

A Phoenix app I am working on is experiencing binaries related memory leak. It is related to Quantum triggered jobs, but after some investigation found that it is actually open telemetry related process that holds on to those binaries. Not sure if this is a Quantum or Telemetry issue though (or our usage!).

Binaries memory leak with quantum and (open)telemetry contains all the details.

Any ideas on what might be the cause?

elvanja avatar Sep 12 '22 07:09 elvanja

@elvanja Hm. I would say that this is an unexpected behavior of telemetry / telemetry-related libraries.

Could you open an issue there and link back to this?

maennchen avatar Sep 13 '22 08:09 maennchen

Yep, already done that. See https://github.com/open-telemetry/opentelemetry-erlang/issues/459. Likely it is entirely at telemetry side of things. Apologies for not adding a note sooner 😄

elvanja avatar Sep 13 '22 08:09 elvanja

@elvanja No worries, thank you :)

I'll leave this issue open for other people until it has been resolved.

maennchen avatar Sep 13 '22 08:09 maennchen

Update: this seems to be resolved by switching protocol to :http_protobuf. The :grpc flow still has issues, but at least there is a workaround. And, it definitely is related to open telemetry, not quantum.

elvanja avatar Oct 11 '22 08:10 elvanja