danthemanD
Denoβ€’3y agoβ€’
9 replies
dantheman

Investigating memory leak after adding new app dependency

Hi, I added an OpenTelemetry metrics reporting loop to a Deno program and found that Deno began leaking memory (300MB+, until it hits OOM and gets killed).
This program was previously stable at 40MB RAM usage.
To begin, I graphed Deno.memoryUsage() and it seems like the leaked memory is all external.
How else can I investigate the issue? Anything else I can add to my typescript to observe this?
Screenshot_2023-03-24_09.30.39.png
Was this page helpful?