Using so much RAM 0.5.0Beta4

Questions and bug reports for Beta releases should be posted here.
Forum rules
Help us help you:
  • 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
Johnny5
Newbie
Newbie
Posts: 10
Joined: December 5th, 2008, 1:47 am

Using so much RAM 0.5.0Beta4

Post by Johnny5 »

Sabnzbd is continually using more ram every second even when idle. Watching it in task manager the memory usage goes up by about 15kb a second. If I let it idle for a day it goes way past 1gb.
User avatar
inpheaux
Administrator
Administrator
Posts: 563
Joined: January 16th, 2008, 9:14 pm

Re: Using so much RAM 0.5.0Beta4

Post by inpheaux »

Even though it's idle, do you have a huge queue? Additionally, please fill out the questionnaire in the sticky.
pair of dimes wrote: When reporting a bug here we'd appreciate it if you could give us some baseline information so we know what we're working with:

Version: (Ex: 0.5.0 beta 4)
OS: (Ex: Windows XP SP2, OSX Leopard, Ubuntu Gutsy)
Install-type: (Ex: Windows Installer, Windows zip, OSx .app, OSx source, python source, linux repository, NAS package)
Skin (if applicable): (Ex: Default, Plush, Smpl)
Firewall Software: (Ex: None, XP SP2 Firewall, Zone Alarm, Norton Internet Security, Kerio)
Are you using IPV6? (yes/no - most likely no)
Is the issue reproducible? (yes/no)
Johnny5
Newbie
Newbie
Posts: 10
Joined: December 5th, 2008, 1:47 am

Re: Using so much RAM 0.5.0Beta4

Post by Johnny5 »

Version: (Ex: 0.5.0 beta 4)
OS: Windows 7
Install-type: Windows Installer
Skin (if applicable):  Plush
Firewall Software:  None
Are you using IPV6? NO
Is the issue reproducible? yes

No queue. Did a fresh install and still having the same issue.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Using so much RAM 0.5.0Beta4

Post by shypike »

Do you have any schedules active?
A "watched folder"? RSS feeds?

I use a Win7-64bit system myself and have never seen memory problems
with SABnzbd. That doesn't mean it cannot happen.
Only that it's hard for me to test it.
Johnny5
Newbie
Newbie
Posts: 10
Joined: December 5th, 2008, 1:47 am

Re: Using so much RAM 0.5.0Beta4

Post by Johnny5 »

I've got it watching a nzb folder every 5 seconds and i have it download newzbin bookmarks every 30min. With nothing in the queue no nzb's to grab or check and no bookmarks it's using 8-10% cpu and memory usage increases by the second.
Johnny5
Newbie
Newbie
Posts: 10
Joined: December 5th, 2008, 1:47 am

Re: Using so much RAM 0.5.0Beta4

Post by Johnny5 »

Ok so i was watching Task Manager again and noticed FireFox doing the same thing. Closed FireFox and voila sab stops as well. I think it may have something do with the nzbdStatus plugin. Yup, i disabled nzbStatus and sabnzbd no longer uses up all my ram.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Using so much RAM 0.5.0Beta4

Post by shypike »

Thanks for the tip.
I'll do some testing too and contact the nzbStatus author if needed.
Could be something in SABnzbd too.
Johnny5
Newbie
Newbie
Posts: 10
Joined: December 5th, 2008, 1:47 am

Re: Using so much RAM 0.5.0Beta4

Post by Johnny5 »

If you are trying to reproduce it, I had the nazbstatus plugin set to 0min refresh rate. I guess normal people would probably only need every minute or so but I like it fast...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Using so much RAM 0.5.0Beta4

Post by shypike »

0 minutes means an unstoppable avalanche of API calls.
The queue overview API call creates a large data structure
and if the calls come fast enough there's no time for
Python's garbage collector to do it's work.
Having 0 minutes interval won't improve your downloading speed :)

This is a bug in nzbStatus (0 should be converted to a reasonable value).
I will check if there isn't any real memory leak.
Post Reply