Memory Usage - Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 04-08-2006 Installation Manual

Table of Contents

Advertisement

tester
tester
tester
tester
To check how many sshd processes are running, use the option -p together with the
command pidof, which lists the process IDs of the given processes.
tester@linux:~> ps -p `pidof sshd`
PID TTY
3524 ?
4813 ?
4817 ?
The process list can be formatted according to your needs. The option -L returns a list
of all keywords. Enter the following command to issue a list of all processes sorted by

memory usage:

tester@linux:~> ps ax --format pid,rss,cmd --sort rss
PID
2
3
4
5
11
12
472
473
[...]
4028 17556 nautilus --no-default-window --sm-client-id default2
4118 17800 ksnapshot
4114 19172 sound-juicer
4023 25144 gnome-panel --sm-client-id default1
4047 31400 mono-best --debug /usr/lib/beagle/Best.exe --autostarted
3973 31520 mono-beagled --debug /usr/lib/beagle/BeagleDaemon.exe --bg --aut
17.6.3 Process Tree: pstree
The command pstree produces a list of processes in the form of a tree:
tester@linux:~> pstree
init-+-NetworkManagerD
|-acpid
|-3*[automount]
|-cron
|-cupsd
|-2*[dbus-daemon]
|-dbus-launch
|-dcopserver
336
Installation and Administration
4072
0.0
1.0
15996
4114
0.0
3.7 130988 19172 ?
4818
0.0
0.3
4959
0.0
0.1
STAT
TIME COMMAND
Ss
0:00 /usr/sbin/sshd -o PidFile=/var/run/sshd.init.pid
Ss
0:00 sshd: tester [priv]
R
0:00 sshd: tester@pts/0
RSS CMD
0 [ksoftirqd/0]
0 [events/0]
0 [khelper]
0 [kthread]
0 [kblockd/0]
0 [kacpid]
0 [pdflush]
0 [pdflush]
5160 ?
4192
1812 pts/0
2324
816 pts/0
Ss
13:02
0:00 gnome-scre
SLl
13:06
0:04 sound-juic
Ss
15:59
0:00 -bash
R+
16:17
0:00 ps axu

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents