deno icon indicating copy to clipboard operation
deno copied to clipboard

Memory leak in Deno.serve?

Open pakastin opened this issue 1 year ago • 2 comments

Version: Deno 2.0.4

I have just a simple reverse proxy server like this and it has memory leak issue (always runs out of memory). I have no idea how to tackle it: https://gist.github.com/pakastin/503dcbcd141e2895a3d863253483c831

pakastin avatar Oct 30 '24 09:10 pakastin

Could you try to create a minimal reproduction? Removing all the code that does not contribute to the memory leak

MathiasWP avatar Oct 30 '24 11:10 MathiasWP

Of course. I'll do that!

pakastin avatar Oct 30 '24 11:10 pakastin

@pakastin did you find the problem after all?

bartlomieju avatar Oct 31 '24 10:10 bartlomieju

I narrowed it down and even though memory usage slowly went up in spikes it seemed to stabilize eventually

pakastin avatar Oct 31 '24 10:10 pakastin