Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

With a large number of torrents (> 500) WebTorrent blocks, making the entire machine unresponsive #625

Closed
niieani opened this issue Feb 18, 2016 · 4 comments
Labels

Comments

@niieani
Copy link
Contributor

@niieani niieani commented Feb 18, 2016

Upon re-adding 500 torrents to WebTorrent (on node, under Linux) the machine basically dies by becoming unresponsive and a hard reboot is required to continue operation.
This is the last output to the console I managed to capture:

screen shot 2016-02-18 at 12 23 27

From what I've read online the problem seems to be with I/O going synchronous when overloaded.
I think the solution might be to set a static, configurable limit on all the I/O done by WebTorrent instances.
Equally, IP connections should have a static, global limit, as in default Ubuntu configuration (without changes to sysctl) I'm experiencing global connections (unrelated to WebTorrent) being dropped very soon (even with only 100 torrents in the instance).

I realize running 500, or even 100 torrents at the same time is not something most people want to do, but there should be some basic safeguards from the app crashing the system.

@rom1504

This comment has been minimized.

Copy link
Member

@rom1504 rom1504 commented Feb 18, 2016

related #587 #599

@stale

This comment has been minimized.

Copy link

@stale stale bot commented May 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 3, 2018
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 4, 2018

WebTorrent needs resource management - this is a known issue.

@feross feross closed this May 4, 2018
@disarticulate

This comment has been minimized.

Copy link

@disarticulate disarticulate commented May 31, 2018

this may be related to:
https://bugs.chromium.org/p/chromium/issues/detail?id=375297

In chrome it's fixed, but there is a quota for blobs.

@lock lock bot locked as resolved and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.