Table des matières

AIX

Processus


Voir les processus courants

Commande ps

PROD-eodu6160:suz9ty ~$ ps
      PID    TTY  TIME CMD
 24512782  pts/2  0:00 /usr/bin/bash
 14092916  pts/2  0:00 -ksh
 30018790  pts/2  0:00 ps

Affiche la liste de tous les process en cours (avec conso CPU et MEM) :

PROD-eodu6160:suz9ty ~$ ps aux
USER          PID %CPU %MEM   SZ  RSS    TTY STAT    STIME  TIME COMMAND
root      1441836  0.1  0.0  448  448      - A      Jul 22 31556:06 wait
root      1310760  0.1  0.0  448  448      - A      Jul 22 31550:05 wait
maestrod 25758160  0.1  0.0 21824 21028      - A    12:34:15  4:44 /produits/xagt
root      1179684  0.1  0.0  448  448      - A      Jul 22 29465:38 wait
root      1376298  0.1  0.0  448  448      - A      Jul 22 25441:14 wait
...

Affiche la liste de tous les process en cours (conso en temps CPU 'C') :

PROD-eodu6160:suz9ty ~$ ps -ef
     UID      PID     PPID   C    STIME    TTY  TIME CMD
    root        1        0   0   Jul 22      - 24:13 /etc/init
    root  5701656        1   0   Jul 22      - 2246:33 /usr/sbin/syncd 60
    root  6684720        1   0   Jul 22      -  0:25 /usr/ccs/bin/shlap64
    root  7012466  7143624   0   Jul 22      -  1:44 /usr/sbin/syslogd
    root  7077930        1   0   Jul 22      -  0:00 /usr/lib/errdemon
    root  7143624        1   0   Jul 22      -  0:02 /usr/sbin/srcmstr
    root  7209134  7143624   0   Jul 22      -  0:00 /usr/sbin/hrd
...

Affiche les process les plus consommateurs de mémoire :

PROD-eodu6160:suz9ty ~$ ps -edf -o uid,pid,ppid,rssize,args | awk 'NR == 1; NR > 1 {print $0 | "sort -rn -k4"}'
     UID      PID     PPID   RSS COMMAND
       0 13434932  7143624 13668 /opt/rsct/bin/rmcd -a IBM.LPCommands -r -S 1500
       0  7471150        1  9376 /opt/CARKaim/bin/appprovider -mode SERVICE
       0 10223782  7143624  6988 /opt/rsct/bin/IBM.MgmtDomainRMd
       0 16253178        1  6216 /usr/bin/topasrec  -L -s 300 -R 1 -r 6 -o /var/perf/daily/ -ypersistent=1 -O type=bin -ystart_time=13:08:07,Jul22,2023
    4151 24316256 10423168  5644 dsapi_slave 7 6 0 4
...

Commande topas
Affiche en live les process.

Trier par conso memoire : topas > menu P > tri sur la coloone PAGE SPACE

PROD-eodu6160:suz9ty ~$ topas
 
Topas Monitor for host:    suz9ty      Interval: 2      Fri Nov 29 14:43:26 2024
 
                                    DATA  TEXT  PAGE                  PGFAULTS
USER          PID     PPID PRI  NI   RES   RES SPACE    TIME  CPU%   I/O   OTH COMMAND
root      7471150        1  60  20 3.22M 5.93M  899M 20807:53   0.0     0     0 appprovi
root     42205982        1  63  20  426M     0  433M 5347:37   0.3     0     0 java
root     11665548        1  63  20  375M  192K  391M 5441:17   0.0     0     0 java
root     12124384        1  63  20  340M     0  354M 5795:11   0.5     0     0 java
root     13631714        1  63  20  338M  192K  347M 4844:38   0.0     0     0 java
root     11599876        1  63  20  333M     0  347M 4448:43   0.0     0     0 java
...


Commande nmon Affiche en live les process.

Trier par conso memoire : nmon > menu T > Mode 4

PROD-eodu6160:suz9ty ~$ nmon
 
┌─topas_nmon──@=AIX6 WPAR────────Host=suz9ty─────────Refresh=2 secs───14:49.34───────────────────────────────┐
│ Top-Processes-(368) ─────Mode=4  [1=Basic 2=CPU 3=Perf 4=Size 5=I/O 6=Cmds] ───────────────────────────────│
│  PID       %CPU     Size      Res     Res      Res     Char    RAM      Paging  Command                    │
│            Used       KB      Set     Text     Data     I/O     Use   io   other repage                    │
│ 7471150     0.0   942588     9376     6076     3300        0    0%      0      0      0 appprovider        │
│42205982     1.7   443676   436644        0   436644       33    1%      0      0      0 java               │
│11665548     0.6   400348   384228      192   384036        5    1%      0      0      0 java               │
│12124384     0.6   363080   348500        0   348500        5    0%      0      0      0 java               │
│13631714     0.5   355932   346276      192   346084        5    0%      0      0      0 java               │
│11599876     0.5   355868   340964        0   340964        4    0%      0      0      0 java               │
│  199926     1.0   338464   338512      128   338384        1    0%      0      0      0 java               │
...