I downloaded winrar 3.91 (from the rarlabs site). I stopped SABnzbd, removed (a lot of) files in the cache directory and now memory usage doesn't come above 250M
Update. I was wrong. The memory usage is still real high....

(( You were right that winrar did not have any influence. (was a coincidence) ))shypike wrote: Did the cache contain a lot of files?
That specific issue (cache orphans) will be solved in 0.6.0
Surprising that it has impact on SABnzbd's memory usage.
I doubt that unrar has any bearing on this, as the program doesn't run permanently.
Exactly. I believe on Linux an app will get as much memory as possible ... as long other apps are not asking more memory / memory back.shypike wrote:
As long as the memory usage isn't steadily rising, I don't consider it to be a memory leak.
And this is exactly where the 'leak' is. Memory isn't returned to the OS. I don't mind SAB getting 2gig of memory, but if it causes SAB not to be able to kick off unrar or par2repair, then I do mind. (not to mention all the other stuff that happens when the OS runs out of memory).sander wrote:Exactly. I believe on Linux an app will get as much memory as possible ... as long other apps are not asking more memory / memory back.shypike wrote:
As long as the memory usage isn't steadily rising, I don't consider it to be a memory leak.



Could you check also the "user objects" and "gdi objects" for certain on Windows if you see that gdi objects start raising, than you have memory leak, but 50000 handles is for certain a leak!mindflayer wrote: I doubt this fully accounts for the memory leaks, but SABNzbd+ leaks a lot of file handles, at least on Windows. If you open Task Manager's 'Process' tab and add the "Handles" column, SABnzbd.exe sometimes has 20K-50K open file handles, even after all downloads are finished. Handles seem to get leaked even during unsuccessful connection attempts.
I'm using 0.5.5RC1 on Server 2008 R2 64-bit, but it's been happening for a long time.