Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix - performance tuning (vmstat 5)

RE: Unix - performance tuning (vmstat 5)

From: CHAN Chor Ling Catherine (CSC) <clchan_at_nie.edu.sg>
Date: Wed, 22 Aug 2001 06:57:08 -0700
Message-ID: <F001.00373E7C.20010822071556@fatcity.com>

Hi Jaouich,

The command
kill `ps -ef | grep vmstat |awk '{print $2}'` works. Thanks a million.

Peter has also solved the problem for me by advising me to use vmstat 5 5 instead.

Regds,
New Bee in Unix
-----Original Message-----
To: Multiple recipients of list ORACLE-L Sent: 08/22/2001 10:21 PM

        I am not sure I understand you question correctly, but here is what I use when I want to kill some jobs ($BATCHJOB = name of the job to kill):

kill -9 `ps -ef|grep $BATCHJOB|awk '{print $2}'`

        If I want to kill all of one user's jobs: su - user
kill -9 -1

        Cheers!

Cyril Jaouich (Conseiller Unix)



Centre de support informatique CSI

Tél 514-289-1122 x6237

De : CHAN Chor Ling Catherine (CSC)[SMTP:clchan_at_nie.edu.sg] Répondre à : ORACLE-L_at_fatcity.com
Date : mercredi 22 août 2001 08:05
A : Multiple recipients of list ORACLE-L Objet : OT: Unix - performance tuning (vmstat 5)

        Hi Unix Gurus,

        I submit a job to monitor the CPU utilization etc every 15 mins using the
command vmstat 5.

        How do I kill the submitted unix process of the batch job ?

        I tried to kill the submitted process using a batch job using the following
command :
var_pid=`echo $var_grep_vmstat | (read u v w x y z; echo ${v} )` kill $var_pid

        This works if the output is
$ ps -ef | grep vmstat

   orahrms 11271 11263 0 17:30:00 ? 0:00 vmstat 5    orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat

        If the output is as below, the program will not work
$ ps -ef | grep vmstat

   orahrms 11612 11576 0 18:50:53 pts/11 0:00 grep vmstat    orahrms 11271 11263 0 17:30:00 ? 0:00 vmstat 5

        Please help. Thanks in advance.

        Regds,
New Bee

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
<http://www.orafaq.com>  
-- 
Author: CHAN Chor Ling Catherine (CSC) 
  INET: clchan_at_nie.edu.sg 

        Fat City Network Services    -- (858) 538-5051  FAX: (858)
538-5051 
San Diego, California        -- Public Internet access / Mailing Lists 
-------------------------------------------------------------------- 
To REMOVE yourself from this mailing list, send an E-Mail message 
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in 
the message BODY, include a line containing: UNSUB ORACLE-L 
(or the name of mailing list you want to be removed from).  You may 
also send the HELP command for other information (like subscribing). 

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: CHAN Chor Ling Catherine (CSC)
  INET: clchan_at_nie.edu.sg

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Aug 22 2001 - 08:57:08 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US