Bugzilla – Bug 3244
Memory leak when playing live stream
Last modified: 2011-03-16 04:40:39 UTC
I recently noticed that SlimServer would shutdown after I have been listening to a live stream for a while. I think I remember that this happened with 6.2.x, too, but this report is based on my current installation (v2006-03-11). The server runs on NetBSD-3.0/i386 using Perl version 5.8.7. After starting the server, ps shows that its using some 45 MB of memory. When listening to a live stream the amount of memory used by the process steadily increases by more than 1 MB every 5 minutes. I'll add an attachment that shows the output of the following command: while true; do date >> memlog; ps -v -p 16616 >> memlog; sleep 300; done (16616 is the SlimServer's PID.) The server process dies when its data segment size reaches the limit for the process (as set by ulimit; about 130 MB in my case). The last line in SlimServer log says "Out of memory!". This is reproducible.
Created attachment 1181 [details] Documentation of the growing data segment
After some more testing I've realized that this happens only with MP3 streams. When playing OGG or WMA streams there is no growth in memory.
I just checked v2006-04-07 and the problem still exists.
Christoph - can you try the latest 6.5 nightly? I made a change in how MP3 streaming works. Also - was this occuring with local files or remote streams? IE: internet radio
(In reply to comment #4) > Christoph - can you try the latest 6.5 nightly? I made a change in how MP3 > streaming works. I did a quick test with v2006-04-21 and I think the problem is gone. Thanks for the quick fix! > Also - was this occuring with local files or remote streams? IE: internet radio This only happened with remote MP3 streams (internet radio; I tried several stations).