LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   renice command not helping (https://www.linuxquestions.org/questions/linux-server-73/renice-command-not-helping-825384/)

bino_linux 08-10-2010 12:46 PM

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?

AlucardZero 08-10-2010 02:47 PM

Is it actually preventing other things from running after you have reniced it? Using all the available CPU time is not a crime.

pvnilsson 08-11-2010 11:12 AM

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

pvnilsson 08-11-2010 11:17 AM

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

bino_linux 08-23-2010 12:22 PM

cpulimit worked...just ran it against the PID and I was good...Thanks all!!!


All times are GMT -5. The time now is 11:32 AM.