Memory leak using SABnzbd

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Blutspur
Newbie
Newbie
Posts: 6
Joined: August 9th, 2016, 2:40 am

Memory leak using SABnzbd

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak using SABnzbd

Post by shypike »

What is your article cache setting? (Config->General)
Blutspur
Newbie
Newbie
Posts: 6
Joined: August 9th, 2016, 2:40 am

Re: Memory leak using SABnzbd

Post by Blutspur »

450M (Default)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak using SABnzbd

Post 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).
Blutspur
Newbie
Newbie
Posts: 6
Joined: August 9th, 2016, 2:40 am

Re: Memory leak using SABnzbd

Post 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.
Blutspur
Newbie
Newbie
Posts: 6
Joined: August 9th, 2016, 2:40 am

Re: Memory leak using SABnzbd

Post 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
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak using SABnzbd

Post by shypike »

Do you have any "security" software installed?
Especially software firewalls other than the standard Windows Firewall?
Blutspur
Newbie
Newbie
Posts: 6
Joined: August 9th, 2016, 2:40 am

Re: Memory leak using SABnzbd

Post by Blutspur »

Windows Firewall as Default and Avira Free Antivirus only.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak using SABnzbd

Post 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?
ed4053
Newbie
Newbie
Posts: 3
Joined: August 11th, 2016, 5:16 pm

Re: Memory leak using SABnzbd

Post 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.
User avatar
safihre
Administrator
Administrator
Posts: 5523
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Memory leak using SABnzbd

Post 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 :)
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ed4053
Newbie
Newbie
Posts: 3
Joined: August 11th, 2016, 5:16 pm

Re: Memory leak using SABnzbd

Post 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.
ed4053
Newbie
Newbie
Posts: 3
Joined: August 11th, 2016, 5:16 pm

Re: Memory leak using SABnzbd

Post 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.
asarian
Newbie
Newbie
Posts: 18
Joined: June 9th, 2016, 6:35 am

Re: Memory leak using SABnzbd

Post 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.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Memory leak using SABnzbd

Post 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.
Post Reply