LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-22-2015, 09:43 AM   #1
jangboing
LQ Newbie
 
Registered: May 2015
Posts: 3

Rep: Reputation: Disabled
Large CPU spike on Debian 8 VPS


Hi guys.

I recently purchased a VPS running Debian 8, and I'm trying to run Icecast2 on it, but for some reason, as soon as I launch the program using the command: "icecast2 -b -c /etc/icecast2/icecast.xml", my CPU usage goes way up. Needless to say, this is bad, especially since it's a VPS.

I'm extremely new to Linux, and I have no idea what I'm doing, but I'm learning. 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?

Thanks for any information you mayb be able to provide.

Last edited by jangboing; 05-22-2015 at 09:45 AM.
 
Old 05-23-2015, 05:18 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by jangboing View Post
Hi guys.
Welcome to LQ, hope you like it here.


Quote:
Originally Posted by jangboing View Post
(..) 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 View Post
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 View Post
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.
 
Old 05-23-2015, 05:32 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,121

Rep: Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371Reputation: 7371
I need to agree with unSpawn and there are still other questions:
1.
Quote:
my CPU usage goes way up. Needless to say, this is bad
Are you sure about that? I think that is the expected behavior. I understand you do not like that, but obviously you started to do something and looks like that needs resources.

2. You do not need fully understand "linux" or "debian" but at least the command you executed. What have you tried at all? What is in that xml?

3. last but not least you gave almost no information therefore we will not able to tell you how can it be fixed. Even, I have no idea what should be fixed.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Upgrade Debian Lenny (Debian 5.0) To Squeeze (Debian 6.0) On Xen VPS LXer Syndicated Linux News 0 03-09-2011 05:20 AM
CPU Usage Spike When Moving Windows with Xubuntu (XFCE) MunkyCheez Linux - Newbie 3 01-07-2011 10:11 PM
Dragging and dropping causes 100% cpu spike? DragonM15 Linux - Software 4 01-22-2009 12:37 PM
KDE had CPU 'spike' every 15seconds! HELP! dezireduser Linux - General 13 11-26-2005 04:22 AM
Moving mouse makes xorg CPU spike to 40% or more tripmix Linux - Newbie 2 12-19-2004 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration