moleculer icon indicating copy to clipboard operation
moleculer copied to clipboard

Memory leak with datadog

Open abhisheksinha1601 opened this issue 5 years ago • 6 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue.

  • [ ] I am running the latest version
  • [x] I checked the documentation and found no answer
  • [x] I checked to make sure that this issue has not already been filed
  • [x] I'm reporting the issue to the correct repository

Current Behavior

Memory leak when datadog tracing is enabled. Datadog spans are not getting freed up.

Expected Behavior

Memory allocated by datadog spans should get released to GC

  • Moleculer version: 0.14.6
  • NodeJS version: 10
  • Operating System: alpine-linux
  • DD-trace version: 0.26.0

Heapdumps with and without tracing enabled

hd-1

hd-2

abhisheksinha1601 avatar Sep 16 '20 15:09 abhisheksinha1601

Hey @icebob please help me out with this problem. Its been over 3 months and I'm unable to figure out the exact issue. I'm suspecting that datadog spans are not getting deleted.

abhisheksinha1601 avatar Sep 24 '20 17:09 abhisheksinha1601

Ok, I will check.

icebob avatar Sep 27 '20 10:09 icebob

Hi... is there any updates on this ... zip line tracer is also facing the same issue

naveenkumarpandian avatar Oct 25 '20 05:10 naveenkumarpandian

Could you reproduce it with latest version of Moleculer & dd-trace?

icebob avatar Apr 09 '21 12:04 icebob

Hey @icebob still facing memory leak with latest version of moleculer and ddtracejs.

leak

abhisheksinha1601 avatar Apr 22 '21 11:04 abhisheksinha1601

Thanks. And could you make a small repro example that I can investigate it?

icebob avatar Apr 22 '21 13:04 icebob