High Memory Usage + Random Crashes

Get help with all aspects of 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.
Post Reply
smiffy1989
Newbie
Newbie
Posts: 6
Joined: June 27th, 2011, 4:20 am

High Memory Usage + Random Crashes

Post by smiffy1989 »

HI,

Just recently rebuilt my server switching from Unraid to WHS 2011. Using 0.7.1 and noticed that the sabnzbd.exe process is using upto 2GB of memory.

I'm also experiencing frequent but random crashes.

A few log snippets:

Code: Select all

2012-07-17 22:03:29,717::INFO::[__init__:826] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\__init__.pyo", line 815, in save_data
MemoryError

Code: Select all

2012-07-17 22:02:53,198::INFO::[__init__:826] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\__init__.pyo", line 815, in save_data
MemoryError
System is:
Core i3 with 4GB of RAM
WHS 2011
SABNZBD 0.7.1 using plush skin
Cache is set at the default 200M

Any ideas? Can provide any further information required :)
User avatar
shypike
Administrator
Administrator
Posts: 19773
Joined: January 18th, 2008, 12:49 pm

Re: High Memory Usage + Random Crashes

Post by shypike »

The root cause is a bug in Python's runtime, which should only occur
after a large amount of sizeable jobs.
The odd thing is that almost nobody reports this, so there may very well be
additional circumstances needed to trigger the bug.
One less-than-satisfactory remedy is to schedule a restart in SABnzbd every 24 hours or so.
We're looking at at an alternative implementation in a later release.
BTW: the large memory usage is new to me.
smiffy1989
Newbie
Newbie
Posts: 6
Joined: June 27th, 2011, 4:20 am

Re: High Memory Usage + Random Crashes

Post by smiffy1989 »

My server has been taking a hammering, it has downloaded a couple of TB's over the last few days.

Sab has not crashed since I restarted it this morning.

An interesting thing is though, I have not accessed the webui (or used qouch) and the memory usage has stayed under 400MB.

I use IIS to reverse proxy which I should have probably mentioned previously.

At work atm but I will try do some testing when I get home to see if I can figure out what causes the high memory usage.
Post Reply