[GH-ISSUE #175] High RAM and CPU usage while torrents are idle? #358

Closed
opened 2026-03-15 03:09:04 +03:00 by kerem · 2 comments
Owner

Originally created by @lordlycastle on GitHub (Jan 3, 2020).
Original GitHub issue: https://github.com/asapach/peerflix-server/issues/175

I have been using this package on a Ubuntu VPS and noticed that the node process uses about 40-45% CPU time (jumps to 60% randomly for 5-10 secs) on decent machine when it not even downloading. And RAM use is around 35% == 3GB when it’s not seeding or downloading.

I have ~20 ‘loaded’ movie torrents in the app; not running. All have finished downloading and are paused. I haven’t removed them because by default removing them deletes the file and don’t want do that before watching. They’re not seeding anymore just paused. I’ve set upload connections to 10 as well.

Can there be a culprit for this CPU stress? I’ve no custom code so what are other people’s experiences. Is there a way to optimize.

I suppose I can change the code to not delete the file on remove and remove them when done but then I’ll need to find other way to manage files. Anyone got recommendations for web based file manager (which perhaps has a better web player for viewing files)?

Processor:    Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
CPU cores:    4
Frequency:    2199.996 MHz
RAM:          7.8G

I’m new to node so still figuring out how to create an app that has this plus other tools like file manager and featured video player for extreme streaming experience. Does peerflix-server only provide the server and web UI functionality with torrent stream doing the torrent related things? Thx for the work you Putin.

Originally created by @lordlycastle on GitHub (Jan 3, 2020). Original GitHub issue: https://github.com/asapach/peerflix-server/issues/175 I have been using this package on a Ubuntu VPS and noticed that the node process uses about 40-45% CPU time (jumps to 60% randomly for 5-10 secs) on decent machine when it not even downloading. And RAM use is around 35% == 3GB when it’s not seeding or downloading. I have ~20 ‘loaded’ movie torrents in the app; not running. All have finished downloading and are paused. I haven’t removed them because by default removing them deletes the file and don’t want do that before watching. They’re not seeding anymore just paused. I’ve set upload connections to 10 as well. Can there be a culprit for this CPU stress? I’ve no custom code so what are other people’s experiences. Is there a way to optimize. I suppose I can change the code to not delete the file on remove and remove them when done but then I’ll need to find other way to manage files. Anyone got recommendations for web based file manager (which perhaps has a better web player for viewing files)? ``` Processor: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz CPU cores: 4 Frequency: 2199.996 MHz RAM: 7.8G ``` I’m new to node so still figuring out how to create an app that has this plus other tools like file manager and featured video player for extreme streaming experience. Does peerflix-server only provide the server and web UI functionality with torrent stream doing the torrent related things? Thx for the work you Putin.
kerem closed this issue 2026-03-15 03:09:17 +03:00
Author
Owner

@asapach commented on GitHub (Jan 3, 2020):

That does seem excessively high. Is there any activity in the logs? Are you sure nobody else is accessing the server?

<!-- gh-comment-id:570723955 --> @asapach commented on GitHub (Jan 3, 2020): That does seem excessively high. Is there any activity in the logs? Are you sure nobody else is accessing the server?
Author
Owner

@lordlycastle commented on GitHub (Jan 4, 2020):

@asapach thx for the reply.

I’ve added swim’s logs here. They seem quiet as far as I can tell. I was running it through forever.

I don’t think anyone else is accessing it. At least no one has added new torrents and they could just be streaming through the web (it’s not listed anywhere but I have yet to add password protection).

<!-- gh-comment-id:570755273 --> @lordlycastle commented on GitHub (Jan 4, 2020): @asapach thx for the reply. I’ve added swim’s [logs here.](https://gist.github.com/4aadfd9ae1b38fb61ac47cdc371839ab) They seem quiet as far as I can tell. I was running it through forever. I don’t think anyone else is accessing it. At least no one has added new torrents and they could just be streaming through the web (it’s not listed anywhere but I have yet to add password protection).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/peerflix-server#358
No description provided.