Sabnzbdplus High Hemory Usage

Support for the Debian/Ubuntu package, created by JCFP.
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.
Post Reply
twistabledeer
Newbie
Newbie
Posts: 1
Joined: September 27th, 2018, 8:21 am

Sabnzbdplus High Hemory Usage

Post by twistabledeer »

Hi all!

I've recently installed Sabnzbdplus on an Ubuntu 18.04 server VM and I've assigned 1.5GB's of RAM to the VM. I am using an SNMP monitoring tool to monitor CPU and memory and I am noticing that the memory on the VM climbs over time. The memory has reached about 90% usage so I used top to see which service consumed the most amount of memory and Sabnzbdplus was at the top. The VM originally had 1 GB of RAM but that got quickly consumed so I added another 500 MB's of additional RAM but that didn't seem to help. Is there a minimal amount of RAM that Sabnzbdplus requires or does the service just consume most of the memory for caching reasons?

Any help would be appreciated!

Thanks
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

I run SABnzbd on 512MB Ubuntu VPS, and that works perfectly.

Only if you have a big queue in SABnzbd, SAB needs more memory.

On Linux, Linux will 'give' memory to an app as long as it's not needed by other applications. On Linux, RAM will be used. So no need to expand your assigned RAM.

Code: Select all

$ top -bn1 | grep  -e sabnzbd -e USER -e KiB
KiB Mem:    506996 total,   433764 used,    73232 free,    63348 buffers
KiB Swap:   520188 total,     4856 used,   515332 free.   232148 cached Mem
  PID USER      PR  NI    VIRT    RES    SHR S %CPU %MEM     TIME+ COMMAND
 2428 sander    20   0  252084  38952   3696 S  0,0  7,7   7:31.58 sabnzbdplus
So SAB uses 7.7% of the 512MB RAM, so 50 MB or so.
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

Hi,

I'm having the same issue on a vero4k+. Have updated sab to 2.3.7,
Python Version: 2.7.13 (default, Sep 26 2018, 18:42:22) [GCC 6.3.0 20170516] [UTF-8]
OpenSSL: OpenSSL 1.1.0j 20 Nov 2018
Multicore Par2 ticked

From a fresh boot, usage is as follows:

v=747/r-442

After a while

v=1005/r=655

Some time after the machine hard locks. Doesn't seem to be anything in the log - but it's here:- https://www.dropbox.com/s/izadppv0828w7 ... 9.log?dl=0

Thanks
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

Your logging:

Code: Select all

2019-01-26 11:54:25,193::INFO::[_cplogging:219] [26/Jan/2019:11:54:25] ENGINE Bus STARTING
2019-01-26 11:54:26,268::INFO::[_cplogging:219] [26/Jan/2019:11:54:26] ENGINE Serving on http://0.0.0.0:8080
2019-01-26 11:54:26,269::INFO::[_cplogging:219] [26/Jan/2019:11:54:26] ENGINE Bus STARTED
2019-01-26 11:54:26,474::ERROR::[misc:521] Cannot create directory /media/disk2/temp2
2019-01-26 11:54:26,477::ERROR::[misc:521] Cannot create directory /media/disk2/temp2
2019-01-26 12:40:48,309::WARNING::[__init__:182] Signal 15 caught, saving and exiting...
2019-01-26 12:41:33,361::INFO::[_cplogging:219] [26/Jan/2019:12:41:33] ENGINE Bus STARTING
I would first solve the "Cannot create directory /media/disk2/temp2"

And why the Signal 15 = SIGTERM? Did you close the terminal?

What other programs are running on the vero4k+?
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

I would first solve the "Cannot create directory /media/disk2/temp2"
I think I restarted box there and sab started before the drives had mounted.

And why the Signal 15 = SIGTERM? Did you close the terminal?
Forgot closing the terminal window would stop sab

Also, running sonarr, radarr, no ip and dataplicity

Might be pertinent to mention that the file I'm downloading is just over 100gb. Could this well be the cause?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

pinn wrote: January 26th, 2019, 1:58 pm Might be pertinent to mention that the file I'm downloading is just over 100gb. Could this well be the cause?
100GB? Interesting. How big is the corresponding NZB file?
EDIT: I checked myself for a 100GB download: NZB itself is 12 - 29 MB, so that is not too special.

How much RAM is in your Vero 4k+ ?
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

sander wrote: January 26th, 2019, 3:40 pm
pinn wrote: January 26th, 2019, 1:58 pm Might be pertinent to mention that the file I'm downloading is just over 100gb. Could this well be the cause?
100GB? Interesting. How big is the corresponding NZB file?
EDIT: I checked myself for a 100GB download: NZB itself is 12 - 29 MB, so that is not too special.

How much RAM is in your Vero 4k+ ?

2gb in the vero.
Out now but can check the size of the nzb later if you need

-----
size of the.nzb is 10mb
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

Out of curiosity, I have uploaded a NZB for a 100GB download to SABnzbd ... running on a 256MB RAM machine (old Synology). Let's see what happens ...
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

sander wrote: January 27th, 2019, 1:55 pm Out of curiosity, I have uploaded a NZB for a 100GB download to SABnzbd ... running on a 256MB RAM machine (old Synology). Let's see what happens ...
Interesting experiment!

Same happened today with a 50gb download, causing hardlocks to system when trying to watch and download. Shut down Sab and the movie played OK so could be worth me downloading to a non active drive
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

sander wrote: January 27th, 2019, 1:55 pm Out of curiosity, I have uploaded a NZB for a 100GB download to SABnzbd ... running on a 256MB RAM machine (old Synology). Let's see what happens ...
How did it go Sander?
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

pinn wrote: January 30th, 2019, 4:43 pm
sander wrote: January 27th, 2019, 1:55 pm Out of curiosity, I have uploaded a NZB for a 100GB download to SABnzbd ... running on a 256MB RAM machine (old Synology). Let's see what happens ...
How did it go Sander?
Bad. The 100 GB download first made SAB interface badly reachable, and later on the whole Synology unreachable. And it seemed SAB only went downloading again after I approached SAB's web interface ... So it looked like SAB was stopped / swapped out ... but I find that unlikely on a Synology.

So I gave it a reset via the physical button on the front side of the Synology.
pinn
Jr. Member
Jr. Member
Posts: 85
Joined: September 18th, 2011, 4:08 am

Re: Sabnzbdplus High Hemory Usage

Post by pinn »

So size of download + unpacking to active drive lead to stability issues . Not surprising really. Guess I will just leave the box alone when downloading larger downloads.

Thanks for the help
User avatar
sander
Release Testers
Release Testers
Posts: 8812
Joined: January 22nd, 2008, 2:22 pm

Re: Sabnzbdplus High Hemory Usage

Post by sander »

I still think a 50GB should not be a problem at all on a 2GB RAM machine.
Post Reply