Linux / UNIX Tech Support Forum
This is a discussion on Limit CPU usage for process Red Hat within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hello, I have been researching the ability to limit a cpu usage amount to processes on a rhel server. e.g. ...
|
|||||||
| CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
||||
|
limits.conf only limit cpu in minutes or seconds.Take a look at nice, ulimit and renice command. There is no config option that can limit 20% php cpu usage. However, a perl or php scrip can monitor usage and kill process if CPU >= 20%.
__________________
Rocky Jr. What's wrong? I hope I am not making you uncomfortable... Never send a boy to do a mans job. |
|
||||
|
Yes,
I am actually working on a perl script to do just that. Thank you very much for your reply. I will be sure to post it when it is complete. Jaysunn |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bandwidth Limit with Iptables | please | CentOS / RHEL / Fedora | 3 | 15-02-2010 07:02 PM |
| How to group the output w/ limit | alvingo | Shell scripting | 1 | 26-07-2009 05:45 PM |
| list path for apache process with great cpu usage | cosminnci | Shell scripting | 4 | 19-08-2008 02:21 AM |
| CPU usage Shell script (Monitoring CPU Usage) | atulmatkar | Shell scripting | 2 | 10-05-2008 10:24 PM |
| Killing of a process and send a mail if the process doesnot come up within 2 minutes | Prince89 | Shell scripting | 1 | 11-02-2008 12:39 PM |