-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmonitorPss.sh
10 lines (10 loc) · 914 Bytes
/
monitorPss.sh
1
2
3
4
5
6
7
8
9
10
#!/bin/bash │~
│~
pid=1 │~
echo 'Monitoring PSS of the process:' $pid │~
│~
while true │~
do │~
cat /proc/$pid/smaps | grep -i 'Pss:' | awk '{Total+=$2} END {print total}' │~
sleep 10 │~
done