Page 1 of 1

Using so much RAM 0.5.0Beta4

Posted: December 21st, 2009, 3:50 pm
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 21st, 2009, 4:02 pm
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)

Re: Using so much RAM 0.5.0Beta4

Posted: December 22nd, 2009, 1:48 am
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 22nd, 2009, 5:43 am
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 22nd, 2009, 11:18 pm
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 22nd, 2009, 11:25 pm
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 23rd, 2009, 4:36 am
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.

Re: Using so much RAM 0.5.0Beta4

Posted: December 24th, 2009, 3:57 am
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...

Re: Using so much RAM 0.5.0Beta4

Posted: December 24th, 2009, 6:50 am
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.