Page 1 of 1
SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 6:01 am
by vwasthename
I'm running an Ubuntu 8.04 server with SABnzbd 0.4.6 on it. It runs great on it but I have one problem. It uses 44% of my 2 GB of memory.
It doesn't matter when SABnzbd is downloading or not(when i pauze the download), it just keep using 44% of my memory. Their is no download witch is being extracted. When I restart SABnzbd the memory usage become normal, but after a few day's runnning it becomes high again.
Some extra information:
The information I get with the command: top
5379 root 20 0 1094m 828m 3684 S 10 44.0 357:42.38 python
The boot script of SABnzbd:
Code: Select all
#! /bin/sh
case "$1" in
start)
echo "Starting SABnzbd."
/usr/bin/sudo -u root -H python /usr/src/SABnzbd-0.4.6/SABnzbd.py -f /root/.sabnzbd/SABnzbd.ini
;;
stop)
echo "Shutting down SABnzbd."
/usr/bin/wget -q --delete-after "http://192.168.1.250:8082/sabnzbd/api?mode=shutdown"
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
Python version:
Python 2.5.2
System uptime
2 Days and 1 hour
System Configuration
CPU: AMD Athlon 64 X2, 4200+
MB: MSI K9AG Neo2-Digital
MEM: 2 GB Kingston
HDD: 3x 320 GB, 2x 750 GB, 2x 1000 GB (all from Samsung)
Skin & extra features
Just the default skin and no extra features
I hope someone can help me with this problem!
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 6:36 am
by shypike
What did you set as a article cache (Config->General).
Limit it to 100M (do not set it to -1).
It doesn't do this on my own Ubuntu-server 8.04 box (with 700M).
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 6:56 am
by vwasthename
I just changed what you said
the memory keeps the same, and in the webinterfece i get this extra message:
72 articles buffered in 27648000 bytes
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 11:00 am
by shypike
The message is OK, it means that you now have an article cache (means less disk access).
So it looks like you didn't have one first.
Which doesn't bring a solution.
So either there's a memory leak in the SABnzbd code itself (nobody complained so far)
or you have a dodgy Python installation or dodgy modules installed.
You got them all by apt-get?
Do you have a huge queue and/or a high refresh rate for the queue?
Does the memory usage also grow despite an empty queue?
Do you have some other program doing http-api queries all of the time?
Do you have a Web browser accessing the queue page all of the time with a high refresh rate?
I'll do some checks on my own system.
There one difference of course: my programs don't run for days (being a developer).
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 11:37 am
by vwasthename
No i didn't had one first, but its a good fucntion to reduce disk access. Thanks for that.
I just restarted the server (adding a new harddrive), and SABnzbd uses just 1% of my memory! But this isnt the first time that SABnzbd uses over 40% memory after a little while.
I'll check every hour the memory usage of SABnzbd without a queue this evening and i will post it when i see a change of usage. If that works good tomorrow i will add downloads and then check it every hour.
I got Python by apt-get, so i think that isn't a problem?
I don't know what a big queue is, i think I donwload quite alot. In the 2 days and 1 hour the system was online I've added 7 NZB's. The biggest NZB was for a download of 120 GB and the seccond biggest one was for a download of 15 GB. The others where around 3/4/5 GB.
On my system their are no http-api queries or other kinda things being excecuted
I have a few clients who look rarely on the Web interface of SABnzbd, so that is not the problem. The refresh rate is disabelt
For now I will just monitor the behaivor of SABnzbd and post updates if i got one.
Thanks for the help
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 28th, 2009, 2:13 pm
by shypike
OK, you download quite large stuff, which should not be a problem.
I just don't download so much myself.
I don't rule out the possibility of a memory leak, they are only very hard to diagnose.
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 29th, 2009, 5:50 am
by vwasthename
Ok, SABnzbd has been running the whole night, with a normal usage of memory!
Now i just added 2 downloads witch both are 6 GB. And the memory is still normal. After this download i will add a bigger download an check if that is the problem.
Re: SABnzbd 0.4.6 on Ubuntu server high memory usage
Posted: January 29th, 2009, 9:10 am
by vwasthename
Ok no problems so far! Memory keeps normal! I had to reboot my server and did some maintance on it. I changed the boot-up script of SABnzbd so when it start is runs on the background. Maybe that was the problem?
Well in the comming days i will see if it has helped. I just added 160 GB to my queue
thanks for the help!