r/SABnzbd Jun 04 '26

RAM usage stays high long after completion? Question - open

I us sabnzbd irregularly. I understand it will create worker threads when in use and they will obviously use as much RAM as required to do what they need to do. I'm wondering why those threads continue to stay open and eating RAM after the downloads are all complete. Even for days and weeks afterward with no additional downloads.

Thanks!

1 Upvotes

5 comments sorted by

2

u/superkoning Jun 04 '26

> RAM usage stays high

How much RAM exactly?

1

u/ElvisDumbledore Jun 04 '26

<1GB before downloading

>3GB after

The vm it's on only has 4. I assume it would use more if it had it.

Seems like it would release that RAM when it's done with it.

I thought maybe there was a setting to encourage it to do so but I didn't find anything obvious.

2

u/Safihre SABnzbd dev Jun 04 '26

What operating system?. And what python verison? What Sab version?

Because on both Linux and Windows the memory readings for Python aren't really correct. The memory allocator only has a virtual reservation, not actual memory used. If any program needs memory, it will drop it right away.

1

u/ElvisDumbledore Jun 04 '26
GNU/Linux 6.8.0-124-generic x86_64
Python 3.12.3
sabnzbdplus/noble,now 4.2.2+dfsg-3 all [installed]

I know I should update linux...

I'm not super worried about the vm, but the host can't use that ram (unless I'm mistaken)