LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-10-2010, 12:46 PM   #1
bino_linux
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Rep: Reputation: 0
renice command not helping


I am running RHEL 5.5. I have a 3rd party app that runs a process, only when initiated by a user, called xreport. My issue is that when any user runs this, it consumes all the cpu resources. I tried running renice on the PID after a user launched it and it didn't help. I can't do anything with the xreport itself as it's a 3rd party binary.

Anybody have another suggestion as to how to stop this from consuming so much cpu?
 
Old 08-10-2010, 02:47 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Is it actually preventing other things from running after you have reniced it? Using all the available CPU time is not a crime.
 
Old 08-11-2010, 11:12 AM   #3
pvnilsson
LQ Newbie
 
Registered: Aug 2010
Location: Denmark
Distribution: Ubuntu 10.04
Posts: 5

Rep: Reputation: 0
cpulimit can limit the cpu usage

You can use a command called cpulimit

Maybe its not on your machine but if you are using debian or ubuntu then its just an apt-get install cpulimit

Take a look at this article

--
Peter Nilsson
http://www.pvnilsson.com
 
Old 08-11-2010, 11:17 AM   #4
pvnilsson
LQ Newbie
 
Registered: Aug 2010
Location: Denmark
Distribution: Ubuntu 10.04
Posts: 5

Rep: Reputation: 0
sorry i didn't saw that you where using RHEL ;-)

if you are using RHEL the you have to find a rpm version of cpulimit or install it with yum, maybe there is one with RHEL allready otherwise you can use a fedora version or a rpm from centos.

--
Peter Nilsson
http://www.pvnilsson.com
 
Old 08-23-2010, 12:22 PM   #5
bino_linux
LQ Newbie
 
Registered: Aug 2010
Posts: 18

Original Poster
Rep: Reputation: 0
cpulimit worked...just ran it against the PID and I was good...Thanks all!!!
 
  


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
[SOLVED] Non-root renice mwkemo Linux - Newbie 3 09-02-2009 12:38 AM
Renice a process yenonn Linux - General 2 10-03-2005 07:59 PM
about renice the process Rex_chaos Linux - General 5 08-01-2004 06:24 AM
helping Teacher w/ comp. Need command in Win XP to probe all the hardware ibm5_25 General 13 02-15-2004 08:17 PM
Nice and Renice KnightAzul Linux - General 1 09-17-2003 11:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:21 PM.

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