lbry-desktop icon indicating copy to clipboard operation
lbry-desktop copied to clipboard

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

Open moodyjon opened this issue 3 years ago • 3 comments

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 avatar Aug 11 '22 20:08 moodyjon

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

moodyjon avatar Aug 11 '22 20:08 moodyjon

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

moodyjon avatar Aug 12 '22 17:08 moodyjon

On initial startup:

image

moodyjon avatar Aug 12 '22 17:08 moodyjon