linuze memory check po procesoch
Ktory demoni vyzieraju kolko pamate?
V zasade 2 uzitocne utility: ps a pmap
ps -o pid,user,%mem,command ax | sort -nr -k3
pmap PID
Ak to chcem trochu uhladene, tak skriptik:
#!/bin/bash
PSIN=$(ps -o pid,user,%mem,command ax | grep -v PID | sort -nr -k3 | awk ‘/[0-9]*/{print $1 “—” $2 “—” $3 “—” $4}’)
for i in $PSIN
do
echo $i
done