How to Check Memory Usage of the Bash command line for Linux
1. top command# top
output:
Check user:oracle Memory Usage$ top -u oracle
2.pmap command
According to the process looking at the memoryusage$ pmap -d 12345
3./proc/meminfo
The /proc/meminfo file stores statistics about memory usage on the Linux based system.$ cat /proc/meminfo
$ less /proc/meminfo
$ more /proc/meminfo
$ egrep --color 'Mem|Cache|Swap' /proc/meminfo
4.ps command$ ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid'
$ ps -e -o 'pid,comm,args,pcpu,rsz,vsz,stime,user,uid' | grep oracle | sort -nrk5
How to Check Memory Usage of the Bash command line for Linux
No comments:
Post a Comment