Quote:
Originally Posted by jangboing
Hi guys.
|
Welcome to LQ, hope you like it here.
Quote:
Originally Posted by jangboing
(..) as soon as I launch the program using the command: "icecast2 -b -c /etc/icecast2/icecast.xml", my CPU usage goes way up.
|
So what does "/etc/icecast2/icecast.xml" do?
Quote:
Originally Posted by jangboing
I'm extremely new to Linux, and I have no idea what I'm doing, but I'm learning.
|
You may think you're allergic to RTF(ine)M (and many new Linux users are under the illusion they'll hit the ground running anyway using a Web-based Control Panel) but really the first best thing would be to read the basic Linux user and admin documentation your Linux distribution provides. Before you get into stability, security, performance tweaking and such, it greatly helps to understand what it is you're running.
Quote:
Originally Posted by jangboing
So does anyone know how I can fix this? I don't know if Icecast2 is just that resource intensive, and if so, is there something else that I can use?
|
First of all you have to understand what you're running. For example an SSD may be faster than a moving parts disk (but that doesn't matter if the application is hogging memory). Also a lot of cheap hosting providers say they won't but overcommit anyway. That simply put means you won't be getting the (dedicated?) system resources you pay for. Secondly Linux does perform resource management very efficiently but you can not expect to run all sorts of resource intensive processes on one machine with just 1 CPU and 1 GB of RAM. (Rethinking what you're doing is best but blindly adding more resources is almost always good.) Third there's basic tools to gauge what's the resource usage like various 'top' commands: top, htop, atop, slabtop, iotop, SAR, etc, etc (that's why you want basic user knowledge first) and Icecast also exposes details at the servers "/admin/stats" path. Finally it all depends on what you're doing because doing transformations is obviously way more resource intensive compared to "simple" streaming. So do see the Icecast docs and there's some load tests at
http://icecast.org/loadtest/ that, while rather old, do provide insights in what is possible / required.
Any questions do ask but please provide tool output and details.