Re: Kill process taking more than 50% of resources

Re: Kill process taking more than 50% of resources

 

  


you can check the CPU utilization using Sar Command also

Regard's


Shailendra Nigam
Technology
A Block
Ext - 88228


|---------+--------------------------------------------------------->
| | "nikunjkumar" |
| | <oracledba-ezmlmshield-x73858550.[Email Address Removed] | azydba.com> |
| | |
| | 30/08/2006 12:42 PM |
| | |
|---------+--------------------------------------------------------->
>----------------------------------------------------------------------------------------------|
| |
| To: "LazyDBA Discussion" <[Email address protected] |
| cc: (bcc: Shailendra Nigam/INFOCOMM/RIL) |
| Subject: Re: Kill process taking more than 50% of resources |
| Importance: Normal Sender's OU: Reliance |------------------| |
| | [ ] Confidential | |
| |------------------| |
>----------------------------------------------------------------------------------------------|




HI,

You can use top command and monitor %CPU %MEM TIME+ of your process it
in your shell script . When it goes beyond your specified limit , kill the
process taking the PID.

with thanks,

Nikunj Purohit




"AbubakarA" <oracledba-ezmlmshield-x11792869.[Email address protected]
08/30/2006 12:38 PM

To
"LazyDBA Discussion" <[Email address protected]
cc

Subject
Kill process taking more than 50% of resources






Hi ,



I need to write one shell script to kill any process which is taking more
then 50% of CPU resource for more then 15 minutes in red hat Linux



Can any body help me on this ,please ............:-):-):-)





regds,

Abubakar Alhajri



8/30/2006 11:14:25 AM

Disclaimer
____________________________________________________________________________

This e-mail message and any attachments are for the sole use of the
intended recipient(s) and may contain confidential and proprietary
information. Any unauthorized use, disclosure or distribution is
prohibited


---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html


ForwardSourceID:NT00009966
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you




---------------------------------------------------------------------
TO REPLY TO EVERYBODY , PLEASE CLICK REPLY-ALL, NOT JUST REPLY
To post a dba job: http://jobs.lazydba.com
To Subscribe : http://www.LazyDBA.com
To unsubscribe: http://www.lazydba.com/unsubscribe.html






Oracle LazyDBA home page