Tracking Down Lost Memory
Hi,
I have a long running service that creates many
I am using
This is what I'm getting with
My memory leak could still absolutely be in my own code, but are the leaks above expected? The DHAT viewer output can be seen here: https://github.com/psbrandt/rusty-v8-memtest/blob/master/dhat-output/master/dhat-master.pdf. I also compiled a custom V8 without WASM (which seems to be one source of the leaks) and I the leaked memory is reduced, but not to zero.
Am I doing something wrong or is there something I can do to clean up after a
Any ideas on how I could debug further?
*Some output deleted to meet post length limit restriction.
I have a long running service that creates many
JsRuntimes over time and I have found that I am slowly leaking memory. While trying to figure out what's going on, I found that the following simple piece of code seems to leak memory:I am using
valgrind to check for memory leaks and this is what I'm getting with DHAT*:This is what I'm getting with
memcheck*:My memory leak could still absolutely be in my own code, but are the leaks above expected? The DHAT viewer output can be seen here: https://github.com/psbrandt/rusty-v8-memtest/blob/master/dhat-output/master/dhat-master.pdf. I also compiled a custom V8 without WASM (which seems to be one source of the leaks) and I the leaked memory is reduced, but not to zero.
Am I doing something wrong or is there something I can do to clean up after a
JsRuntime (besides dispose and/or dispose_platform)?Any ideas on how I could debug further?
*Some output deleted to meet post length limit restriction.
