Abdullah Khan
Abdullah Khan2d ago

Deno needs better memory leaks debugging tools

Hello Deno team! From a few weeks I am facing a big memory leak issue in my Deno app. I used the chrome dev tools to figure out the source of memory leak but I found no clue! There is just a big ArrayBuffer on top with a retained size, when I open it to see the details it has some strange objects with circular references. There are no variable names or source paths of this data that can allow me to find the origin of the memory leak! I have double checked all of my code to find any clue, but nothing found! I am writing this to know if there are any tools that I can use with Deno to debug this issue? Is there any plan to develop some more lower-level tools that can allow debugging these kind of anonymous memory leaks? I have attached a heapsnapshot of my app below. May be you can find the root cause of the memory leak: https://limewire.com/d/b2169988-af1a-4537-a1a5-fd1b3774cca9#iqHBTOHQi6cJiG9a0CITzTK2uK0XJl6xrefAlDvcugg Looking forward for a faster solution for this issue Regards
LimeWire
Download api.heapsnapshot | LimeWire
Download api.heapsnapshot on LimeWire
4 Replies
Sun「無用」
Create an issue on their gh and put that snapshot on a image and/or gist, so people can see it more reliably And about memory leaks, don't except much, you're still writing js, not c
Leokuma
Leokuma14h ago
I have double checked all of my code to find any clue, but nothing found!
Have you checked inside your dependencies as well?
I am writing this to know if there are any tools that I can use with Deno to debug this issue?
I know that Deno.test() is able to detect some leaks.
Is there any plan to develop some more lower-level tools that can allow debugging these kind of anonymous memory leaks?
AFAIK, no.
Sun「無用」
Also is there any ffi in the project/deps?
Niterux
Niterux8h ago
limewire???

Did you find this page helpful?