Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWhy webtorrent can't release memory after torrent remove? #1104
Comments
This comment has been minimized.
This comment has been minimized.
|
I trace it to https://github.com/feross/buffer window.x = new Int8Array(256*1024*1024)
window.x = new Int8Array(256*1024*1024)
window.x = new Int8Array(256*1024*1024)
window.x = new Int8Array(256*1024*1024)Run it for a few times, memory never release, it could be from chrome end P/s: window.x = new ArrayBuffer(256*1024*1024) // same problem |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the issue. I think you should read a bit about how garbage collection works in JavaScript. Running I can't reproduce your issue. I ran your example code in Node.js and memory utilization went down after remove was called. Please share the version of Node.js or the browser that you're running your code in. |
This comment has been minimized.
This comment has been minimized.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.

Hey
My code:
pm2 status:


after the console show torrent remove it still can't release the memory:

After i add some more magnets, my process occur an error because of memory leak.
Please help me check this problem. Thanks a lot.