Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast slowly eats up all my RAM, and then my swap

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Mon Oct 10, 2005 5:53 pm    Post subject: Icecast slowly eats up all my RAM, and then my swap Reply with quote

Hey, all-

I've recently installed & set up an icecast server... an EXCELLENT peice of software, I might add. Extremely easy to configure exactly to my liking... no more lugging around 120GB of music with me!

The only gripe I have is that I'm only streaming one mountpoint at a time, but when Icecast/ICES running they slowly eat up memory.

I didn't notice this until I VNCed into my box to check the status. Under normal running conditions, I usually have maaaybe 10% of my RAM used - max of 20%. Once I start the Icecast server, it stays at a reasonable amount, but slowly grows. After about 6 hours of playing, all of my RAM and all of my swap has been used up - is this expected behavior?

Icecast installed according to the gentoo-wiki howto.

Installed on Gentoo Linux 2.6.12

If you want any logs, I'll post them, but nothing is really 'abnormal' about them.
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Oct 10, 2005 6:39 pm    Post subject: Reply with quote

Can you give details on what you think is showing this usage. If icecast is really taking memory up then it will show in the ps output under the Virtual and Resident sizes (ps aux). If you are just looking at RAM usage via free then it may just be in page cache in which case no problem. icecast (2.3 in particular) should certainly take little memory up (depends on the exact setup, ie the number of clients and sources etc)

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lanjoe9
Guest





PostPosted: Tue Oct 11, 2005 12:56 am    Post subject: similar problem Reply with quote

I think we've got a very similar problem.

I'm using FreeBSD and I'm also seeing IceS2 eat up lots of memory, specifically when I use OSS and capture audio from /dev/dsp. When I use IceS2 in playlist mode, it stays between 7 and 9 MB, never goes beyond that size.

Icecast2 stays constant at about 8 MB though..

here's my post:
Icecast2 + Ices2 on FreeBSD: stream falls behind by sev mins.

What sound card / sample rate are you using? Is IceS2 in playlist mode or are you taking input from the sound card? How much delay are you experiencing?

We might have hit the same bug...
Back to top
Anonymous
Guest





PostPosted: Tue Oct 11, 2005 5:49 pm    Post subject: Reply with quote

Sorry... this week is pretty rough, so I don't know when I'll get to monkey around with this - thanks for the help so far, though!

I was reading the usage from 'top' - the actual mem usage of the icecast/ices processes was less than 4%, total... but the free/used mem was what was effected.

To answer the other questions, I'm just taking the input from a playlist of OGG files, and I'm not really sure about the delay - as it's from a playlist, I wouldn't know if there was a delay! Very Happy Sound card is the nVidia Soundstorm integrated audio on my ASUS A7N8X Deluxe v. 2.00, sample rate is the same as CD-quality (44100?...). I've tried listening via the local server (XMMS) and a remote OS X box (using Whamb!, Audion 3, VLC, & mplayer - for some reason Whamb! is the only one that doesn't stop the stream on song-changes).
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Oct 11, 2005 7:04 pm    Post subject: Reply with quote

unix systems tend to treat free memory as bad, because it isn't being used for anything, so you will find that after some time the system caches will increase in size. It doesn't mean any particular app is having a memory leak, but if anything requires any extra memory then it will be taken from the page cache. The swap will get used as well, but it should not be ever increasing.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Oct 11, 2005 8:44 pm    Post subject: Reply with quote

yeah... I did a ps -aux and icecast + ices is only using 0.4% of memory, combined...

sorry that I blamed your software - it was just alarming that there was such a jump!
Back to top
Anonymous
Guest





PostPosted: Wed Oct 12, 2005 2:25 am    Post subject: ^_^ Reply with quote

Turns out my problem was insufficient CPU since I'm re-encoding from the soundcard in two streams with different quality.

However if I leave the computer alone, just with a simple X session (for XMMS), IceS and Icecast, everything works very well.

This makes me wonder whether I should upgrade to a dual processor PC.. I hate having unused hardware........ perhaps nowadays a pentium 3 processor won't be as expensive... and it'd be a lot of fun configuring the kernel and all that stuff!! Twisted Evil
Oh! sorry, got carried away...
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber