PID Process Resources


 
Thread Tools Search this Thread
Operating Systems HP-UX PID Process Resources
# 8  
Old 07-12-2012
glance text output:
Code:
B3692A GlancePlus C.02.15.00    17:56:00    pha1   9000/803    Current  Avg  High
--------------------------------------------------------------------------------
CPU  Util   SNA                                                |  3%    5%   83%
Disk Util   F                                                  |  2%    1%   11%
Mem  Util   S SU        UB           B                         | 50%   50%   50%
Swap Util   R   R                                              | 10%    9%   10%
--------------------------------------------------------------------------------
Resources PID: 18580, PatrolAgent     PPID:     1 euid:1050 User: patrol
--------------------------------------------------------------------------------
CPU Usage (sec) :     0.00 Log Reads :      0 Rem Log Rds/Wts:      0/      0
User/Nice/RT CPU:     0.00 Log Writes:      0 Rem Phy Rds/Wts:      0/      0
System CPU      :     0.00 Phy Reads :      0
Interrupt CPU   :     0.00 Phy Writes:      0 Total RSS/VSS  : 16.0mb/ 11.7mb
Cont Switch CPU :     0.00 FS Reads  :      0 Traps / Vfaults:      0/      2
Scheduler       :     HPUX FS Writes :      0 Faults Mem/Disk:      0/      0
Priority        :      154 VM Reads  :      0 Deactivations  :      0
Nice Value      :       30 VM Writes :      0 Forks & Vforks :      0
Dispatches      :        1 Sys Reads :      0 Signals Recd   :      0
Forced CSwitch  :        0 Sys Writes:      0 Mesg Sent/Recd :      0/      0
VoluntaryCSwitch:        1 Raw Reads :      0 Other Log Rd/Wt:      0/      0
Running CPU     :        0 Raw Writes:      0 Other Phy Rd/Wt:      0/      0
CPU Switches    :        0 Bytes Xfer:    0kb Proc Start Time
Wait Reason     :    SLEEP                       Mon May 31 10:25:45 2010
      C - cum/interval toggle   % - pct/absolute toggle             Page 1 of 1

# 9  
Old 07-12-2012
Hi all,

I executed the glance command as vbe suggested, but Iīve found an inconvenient:
The command is:
Code:
$ glance -s -no_fkeys -iterations 2

and it displays the nex screen:
Attached file: glance01.png

Thatīs correct, but the problem is glance needs the PID Number to can display the info, like this:
Attached file: glance02.png

That works when I need the info of one PID.
But when there is a lot of process running and they are changing of PID the best [only I guess] solution is with a script.
Until now I cannot specify the PID in the command line:
Code:
$ glance -s 2376 -no_fkeys -iterations 2
$ glance -s2376 -no_fkeys -iterations 2

Any ideas?
Thanks

DASM
PID Process Resources-glance01png
PID Process Resources-glance02png

Last edited by Scott; 07-12-2012 at 03:09 PM.. Reason: Code tags
# 10  
Old 07-12-2012
you could try
Code:
/opt/perf/bin/glance -j2 -iterations 10 -adviser_only -syntax /home/
vbe/glance.syntax

and put down in your syntax file what you request mine had only:
Code:
ant:/home/vbe $ more glance.syntax
print "global priority queue", gbl_pri_queue

for testing someonequestion on this forum...
Did you look at ps command ? Im thinking of the "extented" :
Code:
  XPG4 Synopsis
      ps [-aAcdefHjlPzx] [-C cmdlist] [-g grplist] [-G gidlist] [-n namelist]
           [-o format] [-p proclist] [-R prmgrplist] [-s sidlist] [-t
           termlist] [-u uidlist] [-U uidlist] [-Z pset_list]

e.g.
Code:
UNIX95= ps -efo vsz,ruser,pid,ppid,args | sort -rn | more

for virtual memory usage...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

AIX resources consumption group by process pattern

Hi, I have AIX processes something as below, how to know the resources consumption group by process pattern "price" and "devdb"? eg: CPU RAM WIO price 20% 250M 5% devdb 30% 1000M 8% oracle 2990122 1 0 10:33:39 - 0:00... (1 Reply)
Discussion started by: victorcheung
1 Replies

2. AIX

Process ids consuming huge resources ?

Hi All what is the command to check process ids , which are running from long time and which are consuming more cpu? Also how to check, what a particular PID is running what For Ex: i have a pid :3223722 which is running since from long time, if i want to check what is this... (1 Reply)
Discussion started by: sidharthmellam
1 Replies

3. Programming

[C] Process pid by name

Hi I use linux OS. I've already written a function that allow me to get the process name by pid. (searching in /proc). Now I'd like to perform the inverse task.I mean get the process pid by its name. I could write a function that search in every folder in /proc for the process name, but i... (2 Replies)
Discussion started by: Dedalus
2 Replies

4. Shell Programming and Scripting

getting pid from a process

Hi all, i was able to redirect pid of process to a file in the following way ps aux|awk '$11 == "/Applications/ProjectX/DServer" >> /Applications/ProjectX/DServer.pid it works fine but if one folder name caontains space its not working like below ps aux|awk '$11 == "/Applications/Project\... (1 Reply)
Discussion started by: kirankumars
1 Replies

5. Shell Programming and Scripting

Get an PID of particular process

Hi I have written a shell script to find and kill the particular process. Here in shell script i have written the code like cnt = $(ps -ef | grep Shree) echo $cnt I am getting the output root 2326 2317 0 14:39:46 pts/1 0:28 Shree -f fdc.fbconf FDCapp.fbapp Here I want to... (2 Replies)
Discussion started by: Shreedhar Naik
2 Replies

6. UNIX for Dummies Questions & Answers

Need to get pid of a process and have to store the pid in a variable

Hi, I need to get the pid of a process and have to store the pid in a variable and i want to use this value(pid) of the variable for some process. Please can anyone tell me how to get the pid of a process and store it in a variable. please help me on this. Thanks in advance, Amudha (7 Replies)
Discussion started by: samudha
7 Replies

7. AIX

Finding process taking up resources

I'm assuming that using the PS command would tell me about processes running. But how can I target a process that is taking up too many resources, and slowing down the system. Even an orphan process. (5 Replies)
Discussion started by: NycUnxer
5 Replies

8. AIX

How to list the resources used for each process

Hi Expert, Can anyone tell what command can list the resources used for each process in AIX, including the following columns: Process ID, Program Name, Resources used(CPU,RAM,SWAP),Start Time Thanks!! Victor Cheung (3 Replies)
Discussion started by: victorcheung
3 Replies

9. Solaris

getting pid of process

hi all, Is there a simple script anyone could through out to me, to find the pid of a process given the name. I actually need to bind this pid to a processor set. I would probably put these comamns in a shell script which would have. a) kick start the executable b) get the pid c) bind it to a... (10 Replies)
Discussion started by: Naanu
10 Replies

10. Shell Programming and Scripting

Process PID

Hi Friends :p I have a little problem please help me out. I have a Unix based OS Sun Server having oracle 8i as database on it. The server has one client with windows OS. The client uses developer 2000 (GUI) to run query and run processes. I want to know how can I know the PID of a process run... (3 Replies)
Discussion started by: vanand420
3 Replies
Login or Register to Ask a Question