This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
aix:aix_perf_base_cmd [2022/11/08 11:56] manu [ps command] |
aix:aix_perf_base_cmd [2023/07/21 14:05] (current) manu |
||
---|---|---|---|
Line 64: | Line 64: | ||
pstree like | pstree like | ||
<cli prompt='#'> | <cli prompt='#'> | ||
- | [root@aix-oracle]/root# ps -f -T $Qualys_pid | + | [root@aix-oracle]/root# ps -f -T 5308894 |
UID PID PPID C STIME TTY TIME CMD | UID PID PPID C STIME TTY TIME CMD | ||
root 5308894 5243304 0 Oct 17 - 0:02 /usr/sbin/sshd | root 5308894 5243304 0 Oct 17 - 0:02 /usr/sbin/sshd | ||
Line 79: | Line 79: | ||
root 15335842 15532456 0 10:08:48 pts/0 0:00 \---ksh93 | root 15335842 15532456 0 10:08:48 pts/0 0:00 \---ksh93 | ||
</cli> | </cli> | ||
+ | |||
+ | |||
+ | |||
+ | Displaying top CPU_consuming processes: | ||
+ | <cli prompt='#'> | ||
+ | # ps aux | head -1; ps aux | sort -rn +2 | ||
+ | </cli> | ||
+ | |||
+ | Displaying top memory-consuming processes: | ||
+ | <cli prompt='#'> | ||
+ | # ps aux | head -1; ps aux | sort -rn +3 | head | ||
+ | </cli> | ||
+ | |||
+ | Displaying process in order of priority: | ||
+ | <cli prompt='#'> | ||
+ | # ps -eakl | sort -n +6 | head | ||
+ | </cli> | ||
+ | |||
+ | Displaying the process in order of time: | ||
+ | <cli prompt='#'> | ||
+ | # ps vx | head -1;ps vx | grep -v PID | sort -rn +3 | ||
+ | </cli> | ||
+ | |||
+ | Displaying the process in order of real memory use: | ||
+ | <cli prompt='#'> | ||
+ | # ps vx | head -1; ps vx | grep -v PID | sort -rn +6 | ||
+ | </cli> | ||
+ | |||
+ | 7. Displaying the process in order of I/O: | ||
+ | <cli prompt='#'> | ||
+ | # ps vx | head -1; ps vx | grep -v PID | sort -rn +4 | ||
+ | </cli> | ||
+ | |||
===== svmon command ===== | ===== svmon command ===== | ||
+ | |||
+ | Command to display top ten processes and users: | ||
+ | <cli prompt='#'> | ||
+ | # svmon -P -v -t 10 | more | ||
+ | </cli> | ||
Statistics about memory; virtual and real | Statistics about memory; virtual and real |