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 upMemory leak suspicions after leaving https://webtorrent.io/ opened during many hours #1591
Comments
This comment has been minimized.
This comment has been minimized.
|
Test in progress with Chromium Version 72.0.3626.121 Ubuntu 18.04 (64-bit) After 5h hours After few days (laptop suspended at night): I'll tell the real usage if I really need RAM and need to close the tab. |
This comment has been minimized.
This comment has been minimized.
|
A tip when testing use a new window instead of a new tab (since background tabs can be somewhat idle sometimes) |
This comment has been minimized.
This comment has been minimized.
|
Thanks, indeed I always use foreground tabs. So I'm retrying again :) |
This comment has been minimized.
This comment has been minimized.
|
@tuxayo Any errors in the console? I'm guessing the memory leak is related to Chrome not garbage collecting RTCPeerConnection objects. feross/simple-peer#422. That's what I see after leaving a tab open for many hours. |
This comment has been minimized.
This comment has been minimized.
|
additional results:
|
This comment has been minimized.
This comment has been minimized.
Indeed! here is my log: I'll retry with Firefox where I initially started suspecting this memory issue. |
This comment has been minimized.
This comment has been minimized.
|
I just measured on Firefox (v67b7) a 2310MB RAM difference when closing the webtorrent tab, opening a new one, waiting for the end of the download. So this is what I was having since few months, the previous huge findings were not errors. The page was left open for more than 36h. logs: |
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |


What version of WebTorrent?
All those on https://webtorrent.io/ since few months. (since I'm using it)
What browser and version? (if using WebTorrent in the browser)
Firefox Developer Edition 66.0b11 (64-bit) on Linux
Since few months I'm seeing this previous versions of Firefox also.
What did you expect to happen?
To be able to "seed" the project's homepage demo during a lot of time without issue.
What actually happened?
Didn't pay attention to the used RAM this time => 10 min freeze until OOM killer killed the process of the tab running WebTorrent.
According to the free RAM&swap after the issue, when I reopened WebTorrent and waited for the demo to download again, the difference was more than 3GiB of RAM.
Although that seem too high compared to the previous measures [1] and the time I left WebTorrent opened.
[1] when I closed WebTorrent before having an OOM.
I'll add more precises measures over time.