Bug 3244 - Memory leak when playing live stream
: Memory leak when playing live stream
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Streaming To SlimServer
: 6.5b1
: PC Other
: P2 major (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-05 08:11 UTC by Christoph Leuzinger
Modified: 2011-03-16 04:40 UTC (History)
0 users

See Also:
Category: ---


Attachments
Documentation of the growing data segment (22.32 KB, text/plain)
2006-04-05 08:12 UTC, Christoph Leuzinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Leuzinger 2006-04-05 08:11:34 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.
Comment 1 Christoph Leuzinger 2006-04-05 08:12:49 UTC
Created attachment 1181 [details]
Documentation of the growing data segment
Comment 2 Christoph Leuzinger 2006-04-05 12:33:12 UTC
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.
Comment 3 Christoph Leuzinger 2006-04-07 10:39:36 UTC
I just checked v2006-04-07 and the problem still exists.
Comment 4 Dan Sully 2006-04-20 23:40:05 UTC
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
Comment 5 Christoph Leuzinger 2006-04-21 13:04:53 UTC
(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).