[HPADM] determining CPU time of a running process

From: Paveza, Gary (gary.paveza_at_AIG.COM)
Date: 03/25/04

  • Next message: Lal, Neeraj: "[HPADM] /etc/passwd question to create login id"
    To: "'HP9000 Admin'" <hpux-admin@dutchworks.nl>
    Date: Thu, 25 Mar 2004 09:24:37 -0500
    
    

    Does anyone know of a way to query a process and determine how much CPU time
    is has used? Glance shows it very well, however, I have a requirement that
    I be able to run a script and identify likely run-away processes and send an
    email alert on them.

    For example (from glance):

    ----------------------------------------------------------------------------

    ----
                                      PROCESS LIST                      Users=
    47
                                  User      CPU Util     Cum     Disk
    Thd
    Process Name   PID   PPID Pri Name   (  800% max)    CPU   IO Rate    RSS
    Cnt
    ----------------------------------------------------------------------------
    ----
    rts32_t      17807      1 241 plpcd5    102/99.8 82170.1  0.0/ 0.0   6.1mb
    2
    rts32_t        694      1 241 plpcd5    101/99.8 89529.5  0.0/ 0.0   5.7mb
    2
    I will be keying off two fields (PPID being 1) or Cum CPU being greater than
    a certain amount (like 3000 seconds).
    ---------------------------------------------------------
    Gary Paveza, Jr.
    Senior Systems Administrator -CSA
    (302) 252-4831 - phone
    (302) 588-6368 - cell
    --
                 ---> Please post QUESTIONS and SUMMARIES only!! <---
            To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
           Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
     
     Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
                http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)
    

  • Next message: Lal, Neeraj: "[HPADM] /etc/passwd question to create login id"

    Relevant Pages

    • [HPADM] SUMMARY: determining CPU time of a running process
      ... Does anyone know of a way to query a process and determine how much CPU time ... Process Name PID PPID Pri Name CPU IO Rate RSS ... I will be keying off two fields or Cum CPU being greater than ... To subscribe/unsubscribe to this list, ...
      (HP-UX-Admin)
    • [HPADM] SUMMARY: determining CPU time of a running process
      ... Does anyone know of a way to query a process and determine how much CPU time ... Process Name PID PPID Pri Name CPU IO Rate RSS ... I will be keying off two fields or Cum CPU being greater than ... To subscribe/unsubscribe to this list, ...
      (HP-UX-Admin)
    • Re: services.exe using 90% cpu?
      ... always spending 75-90% of CPU with Services.exe. ... A quick glance at the ... services running didn't seem to show anything out of the ordinary, ...
      (microsoft.public.windowsxp.general)