Skip to main content

Solaris 10 all about memory analysis

Use prstat to display processes ordered by memory used, and show a summary output of memory consumption by user. #prstat -a -s rss if you want to see what procs are using most memory, use this command so u have a sorted list of procs. #prstat -s size Use prtconf to display the total physical memory installed on the machine #prtconf -v | head -3 Use memstat to have a peek at what the kernel memory usage is #echo "::memstat" |mdb -k If you’re using ZFS check how much is being used by the ARCcache. # kstat -m zfs |grep size Am I swapping? watch the swap in/out columns; if they’re not 0, you need more RAM #vmstat 3 #swap -l #df -kh swap use sar to reports kernel memory allocation (KMA) activities: #sar -k 1 5

Comments