lbryio / lbry-desktop

A browser and wallet for LBRY, the decentralized, user-controlled content marketplace.
https://lbry.tech
MIT License
3.56k stars 413 forks source link

LBRY Helper (Renderer) excessive memory usage after several days of uptime #7673

Open moodyjon opened 2 years ago

moodyjon commented 2 years ago

Bug

I just noticed today my lbry-desktop app was consuming 6GB+ memory. This inhibits keeping the thing running for long periods when not watching videos. Being able to run it for long periods helps with the health of the data network.

To Reproduce Steps to reproduce the behavior:

  1. Start up app.
  2. Keep it running for days, while watching one or two videos per day.
  3. Monitor memory consumption.

Expected behavior Memory consumption should be more-or-less flat, and < 1GB.

Screenshots

image

System Configuration

MacOS 12.4

image

{ "jsonrpc": "2.0", "result": { "build": "release", "lbrynet_version": "0.107.2", "os_release": "21.5.0", "os_system": "Darwin", "platform": "Darwin-21.5.0-x86_64-i386-64bit", "processor": "i386", "python_version": "3.7.13", "version": "0.107.2" } }

Additional context

I did watch half of one video that was 5.5GB total size today. However, when I switched away to another video, memory usage did not go down. CPU usage by the app was minimal at the time I took the screenshot.

moodyjon commented 2 years ago

I just looked at the logs, and I can infer that it was up for ~5 days.

moodyjon commented 2 years ago

Checked today, and it is stable at 6.3-6.4GB. I will watch what happens on restart.

moodyjon commented 2 years ago

On initial startup:

image