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 upNode.js memory leak #346
Node.js memory leak #346
Comments
This comment has been minimized.
This comment has been minimized.
|
Those are almost certainly threads, not processes. WebTorrent doesn't ever spawn processes but node.js will spawn new threads for IO tasks. The problem where everything stops working is the real problem here. How large are the torrents you're seeding? How many are you seeding? |
This comment has been minimized.
This comment has been minimized.
|
Pro-tip: You can configure |
This comment has been minimized.
This comment has been minimized.
|
Hey @feross I'm seeding 4 |
This comment has been minimized.
This comment has been minimized.
|
Why is it a problem that node create these threads ? |
This comment has been minimized.
This comment has been minimized.
|
@rom1504 after seeding 3 html files, you will have more than 100 threads and no memory left. |
This comment has been minimized.
This comment has been minimized.
|
How are you seeding these files ? I don't think starting several webtorrent instances is an efficient way to do it. |
This comment has been minimized.
This comment has been minimized.
|
@rom1504 I'm using webtorrent-hybrid. I don't create several WebTorrent instances but I call |
This comment has been minimized.
This comment has been minimized.
|
Threads don't necessarily take a notable amount memory.
|
This comment has been minimized.
This comment has been minimized.
|
Closing because the original issue was invalid (node.js creates lots of threads - not a WebTorrent issue).
|
When I try to seed two or three files, more than 30 processes created and the server just stop working.
Here is a screenshot of my server and processes:

Also I got
max EventListenererror.