04-30-2008
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
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello Community,
I've got a unix server and 13 pcs with windows. I'm trying to built some tiny winy app to monitorize the windows processes. Any one knows if exist some kind of pstools for unix to communicate with windows.
I'm the system administartor so I've got rights in all computers.
... (3 Replies)
Discussion started by: ncatdesigner
3 Replies
2. AIX
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
3. UNIX for Dummies Questions & Answers
Hi,
How to list the processes which are created in last 7 days ?
Is there any script or command, please reply ASAP.
Thanks
Rajesh (2 Replies)
Discussion started by: rajesh08
2 Replies
4. Solaris
Hello,
I have a SUN T5240 running Solaris 10 with Logical Domain Manager (v 1.0.3). You can use the "ldm" command to display current resources on the box. Is there away to display all the "physical resources" on the box(i.e.,used and unused). For example, "ldm ls" will tell me what the... (5 Replies)
Discussion started by: stephanpitts
5 Replies
5. UNIX for Dummies Questions & Answers
i read in ps manual that -C cmdlist will just result to processes stated in the cmdlist. i intend to issue this command
ps c -FC "firefox-bin, soffice.bin"
here cmdlist contains two executables only. in the future, this cmdlist will grow. is there a way i can make ps read a csv file as... (2 Replies)
Discussion started by: mbaste2
2 Replies
6. AIX
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
7. AIX
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
8. HP-UX
Hi all.
I need to get detailed information about a PID.
I have an app called Reflection X and it shows many things like Total CPU percent, User CPU (Nice) percent, FS Reads, etc.
My question is how can I get all that information on console?
Is there an archive with the detailed... (9 Replies)
Discussion started by: the0m3n
9 Replies
9. Shell Programming and Scripting
Hi,
I need an output of process running on server, i am executing
ps -ef | grep test
output is
asak 22362 1 0 Nov07 ? 00:00:03 /usr/software/bin/perl-5.8.8 /u/assk/bin/test -v none JOBID=2012117
asak 23748 22362 0 Nov07 ? 00:00:00 /usr/software/bin/perl-5.8.8... (3 Replies)
Discussion started by: asak
3 Replies
10. Shell Programming and Scripting
Hi team,
Anyone help me cut a process name from ps -ef output?
lit-dbrac01-b004: $ ps -ef|grep pmon|cut -f5 ...
oracle 448 1 0 2014 ? 00:04:15 ora_pmon_blms50db2
Like I need just the process name:
ora_pmon_blms50db2
Any ideas?
Thanks in advance.
jd (3 Replies)
Discussion started by: jonnyd
3 Replies
LEARN ABOUT LINUX
lslocks
LSLOCKS(8) System Administration LSLOCKS(8)
NAME
lslocks - list local system locks
SYNOPSIS
lslocks [options]
DESCRIPTION
lslocks lists information about all the currently held file locks in a Linux system.
OPTIONS
-i, --noinaccessible
Ignore lock files which are inaccessible for the current user.
-J, --json
Use JSON output format.
-n, --noheadings
Do not print a header line.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
The default list of columns may be extended if list is specified in the format +list (e.g. lslocks -o +BLOCKER).
-p, --pid pid
Display only the locks held by the process with this pid.
-r, --raw
Use the raw output format.
-u, --notruncate
Do not truncate text in columns.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
OUTPUT
COMMAND
The command name of the process holding the lock.
PID The process ID of the process which holds the lock.
TYPE The type of lock; can be FLOCK (created with flock(2)), POSIX (created with fcntl(2) and lockf(3)) or OFDLCK (created with fcntl(2).
SIZE Size of the locked file.
MODE The lock's access permissions (read, write). If the process is blocked and waiting for the lock, then the mode is postfixed with an
'*' (asterisk).
M Whether the lock is mandatory; 0 means no (meaning the lock is only advisory), 1 means yes. (See fcntl(2).)
START Relative byte offset of the lock.
END Ending offset of the lock.
PATH Full path of the lock. If none is found, or there are no permissions to read the path, it will fall back to the device's mountpoint
and "..." is appended to the path. The path might be truncated; use --notruncate to get the full path.
BLOCKER
The PID of the process which blocks the lock.
NOTES
The lslocks command is meant to replace the lslk(8) command,
originally written by Victor A. Abell <abe@purdue.edu> and unmaintained
since 2001.
AUTHORS
Davidlohr Bueso <dave@gnu.org>
SEE ALSO
flock(1), fcntl(2), lockf(3)
AVAILABILITY
The lslocks command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux December 2014 LSLOCKS(8)