Page 1 of 2

Memory leak using SABnzbd

Posted: August 9th, 2016, 2:46 am
by Blutspur
Greetings,
i have problems with the used memory while running SABnzbd... you can see the memory allocation grows permanently and after 30 to 60 minutes (only when active, not in idle mode) the physical memory is gone and swapping begins.
Only a reboot helps to get the memory free again.

Is this a known issue?

Windows 10 64bit
16 GB RAM
SABnzbd 1.0.3 [927ba3c]

What more informations are needed?

Thank you!

Regards
Blutspur

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 3:06 am
by shypike
What is your article cache setting? (Config->General)

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 3:31 am
by Blutspur
450M (Default)

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 3:43 am
by shypike
The only known case of a memory leak on a Windows system with SABnzbd
is described in the "Known issues" file:
- A bug in Windows 7 may cause severe memory leaks when you use SABnzbd in
combination with some virus scanners and firewalls.
Install this hotfix:
Description: http://support.microsoft.com/kb/979223/en-us
Download location: http://support.microsoft.com/hotfix/KBH ... kbln=en-us
However, that may not apply to a Windows 10 system.

The only other work-around we made for some obscure embedded systems is this:
Config->General->use_pickle
If you set that to 1, another method of saving the job administration is used.
That's worth a try.

BTW: you say that only a reboot solves the memory leak.
Is that a reboot of Windows or of SABnzbd?
If it's the first, it may not be SABnzbd itself that is the cause (but possibly a trigger).

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 3:49 am
by Blutspur
I meant reboot of Windows... shutdown of the SABnzbd daemon doesn't change anything.
The usage of SABnzbd is definitely the trigger, if it the cause i can't say.
I'll try your work-around and post the results.

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 4:42 am
by Blutspur
Sorry, no change in general.

I also tried to reduced the article cache from 400M to 256M but situation seems to be the same.

Do you have any further ideas?

Regards
Blutspur

Re: Memory leak using SABnzbd

Posted: August 9th, 2016, 5:18 am
by shypike
Do you have any "security" software installed?
Especially software firewalls other than the standard Windows Firewall?

Re: Memory leak using SABnzbd

Posted: August 10th, 2016, 3:17 am
by Blutspur
Windows Firewall as Default and Avira Free Antivirus only.

Re: Memory leak using SABnzbd

Posted: August 10th, 2016, 6:26 am
by shypike
I have no explanation.
Since it is not reported by other Windows users (80% of the SABnzbd users are on Windows),
it is specific to your system.

Does the problem go away if you downgrade to 0.7.20?

Re: Memory leak using SABnzbd

Posted: August 11th, 2016, 5:40 pm
by ed4053
Same problem here with 1.0.3 [927ba3c].
Win10 Home x64
16Go

It seems fairly recent. I only noticed it when queuing lots of files, otherwise my 16Go could take the leak but those 2 times the system slowed to a crawl and had to reboot windows.

Tried to check process memory using the task manager but can't pinpoint where the memory is gone, just the committed memory grows non stop while downloading.

To me it feels like it started after the anniversary update of win10 a few weeks back but can't be sure.

I'll probably try a downgrade to 0.7.20 in the next few days.
Windows defender & malwarebyte anti exploit are the only 2 security software installed.

Re: Memory leak using SABnzbd

Posted: August 12th, 2016, 1:30 am
by safihre
I did see this thread about the update:
https://www.reddit.com/r/usenet/comment ... nnections/

Would be interesting to see if downgrading helps.. Keep us updated :)

Re: Memory leak using SABnzbd

Posted: August 12th, 2016, 3:03 am
by ed4053
Ok I haven't tried 0.7.20 but I don't think it'll change anything.
It doesn't seem to be a sabnzbd problem but a downloading problem since the last win10 update.
I saw the mem leak with downloading torrents and also using my own multiconnection downloader that I use to download youtube and twitch videos.

Re: Memory leak using SABnzbd

Posted: August 12th, 2016, 4:32 am
by ed4053
Ok so I seem to have found the source and the fix for my leak. Hopefully that might help Blutspur and others that have the same config.

My motherboard comes with a Killer e2400 network card. The default driver comes with an application suite from Killer and that app seems to be the problem.

To fix it:
Go to your motherboard website, then to support then to drivers.
In the driver list I had 2 options for the Killer driver:
-Killer Network Driver
-Killer Network Driver (driver only)

Download the 2nd one (driver only) then unzip the file somewhere convenient.
Then uninstall the killer app. You will need to reboot windows and when you boot back, you won't have an internet connection.
Go to where you unziped the driver only zip, right click on the *.inf file and click "install" in the context menu.
Your internet connection comes back up and at least in my case the memory leak seems to be gone.

Re: Memory leak using SABnzbd

Posted: August 15th, 2016, 11:10 pm
by asarian
I too am experiencing *huge* memory loss, using SABNzbd 1.0.3 [927ba3c] (on Synology). Memory consumption can easily grow over 1G (and never gets returned), after which I have to restart the process.

Seems the Synology version is Python based (which is what probably accounts for the huge memory losses). Isn't there a stable binary version that can be used on Synology?!

The Windows version I have (different machine) is a binary, and never leaks at all.

Re: Memory leak using SABnzbd

Posted: August 16th, 2016, 2:19 am
by shypike
What helps on some systems is to set Config->Special->use_pickle to 1 and restart.
It is obvious that there is an issue in the Python libraries, which we cannot solve.
Using the special option makes SABnzbd use another (less efficient) method of saving its administration.
This could fix the memory leak.