Webtorrent-desktop: why it uses too much memory?

Created on 22 Mar 2020  路  6Comments  路  Source: webtorrent/webtorrent-desktop

What version of WebTorrent Desktop are you using?
v0.21.0
What operating system and version?
Windows 10 v2004
What happened?
it uses too much ram, 4GB? that's crazy. only 1 file downloading, 2.3GB
Taskmgr_lBPvMJjVUX

Most helpful comment

This isn't ideal. Does the memory utilization return to zero when you remove all torrents from the app?

If yes, then it means that WebTorrent is storing file data in memory instead of in the temp folder on the filesystem, which is a bug. If no, then perhaps a memory leak was introduced?

All 6 comments

hi, in ubuntu 18.04 the same thing, although it eats less than about 2 GB, I鈥檒l add a screen later!

And now screenshot, file download 4.7 gb, and webtorrent use 2.8 gb memory!
______

By the way, this is not one problem, you cannot change the player on this version, fix it, but I have to roll back to the previous one!

Keep in mind that all the code (javascript is interpreted language, idk about NodeJS), file buffers for downloading and uploading, and media player must be stored somewhere. This is disadventage of "modern" programming languages like Java, JavaScript and Python (which is less RAM heavy, but more CPU intensive).

Is this causing noticeable problems?

I'm also having this problem, I was downloading a 3gb ISO memory usage went to 8gb

This isn't ideal. Does the memory utilization return to zero when you remove all torrents from the app?

If yes, then it means that WebTorrent is storing file data in memory instead of in the temp folder on the filesystem, which is a bug. If no, then perhaps a memory leak was introduced?

With me it happened during download the memory problem, when I finish the download it returned to normal

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hicom150 picture hicom150  路  4Comments

npyl picture npyl  路  4Comments

grunjol picture grunjol  路  5Comments

barcazama picture barcazama  路  3Comments

sorrykim picture sorrykim  路  5Comments