standvpmntS
Denoβ€’2y agoβ€’
3 replies
standvpmnt

Debugging high (string) heap usage

I was observing relatively high memory usage in my deno applications (web-applications). I haven't attempted any debugging on my production application, however upon connecting to a debugger locally on my development environment I am seeing high memory size for (string) and in there it appears a lot of it is coming from std library or other dependency modules. I am attaching the images here for reference, if required I can share the heapsnapshot file through a downloading service since it is around 250MB.

I am trying to understand how or if I can reduce the memory usage of this (string) as majority of the memory usage is happening here.
Any help or reference resource which I can study to debug and solve this issue would be much appreciated, since I am not well-versed with profiling and memory usage I would be happy to learn more if I am missing something here.
Screenshot_2024-02-25_at_10.44.44_AM.png
Screenshot_2024-02-25_at_10.49.05_AM.png
Was this page helpful?