I have Solaris-10 with mutiple zones running in it. My Big Brother monitoring is complaining for very less swap space available, but I am not able to find, what process has consumed its swap space and how to clear it. All zones including global server have almost blank /tmp with very less data.
HTML Code:
root@apps_serv201:/# df -h /tmp
Filesystem size used avail capacity Mounted on
swap 512M 88K 512M 1% /tmp
root@apps_serv201:/# /usr/sbin/swap -s
total: 75843704k bytes allocated + 39689080k reserved = 115532784k used, 1395416k available
root@apps_serv201:/# /bin/vmstat 1 2 | tail -1
16 0 0 1394080 43647304 81 135 0 0 0 0 0 0 0 0 0 40221 49765 43543 10 4 86
root@apps_serv201:/# /usr/sbin/swap -l
swapfile dev swaplo blocks free
/dev/zvol/dsk/rpool/swap 256,1 16 25165808 24877088
I downloaded a script called swapinfo and that gave me this info --
PHP Code:
root@apps_serv201:/# /var/tmp/swapinfo
RAM _____Total 131072.0 Mb
RAM Unusable 2436.1 Mb
RAM Kernel 12859.0 Mb
RAM Locked 98162.2 Mb
RAM Used -25007.9 Mb
RAM Avail 42622.5 Mb
Disk _____Total 12288.0 Mb
Disk Alloc 141.0 Mb
Disk Free 12147.0 Mb
Swap _____Total 114179.5 Mb
Swap Alloc 74060.4 Mb
Swap Unalloc 38733.0 Mb
Swap Avail 1386.1 Mb
Swap (MinFree) 16100.7 Mb
root@apps_serv201:/#
PHP Code:
root@apps_serv201:/# echo ::memstat | mdb -k
Page Summary Pages MB %Tot
------------ ---------------- ---------------- ----
Kernel 995817 7779 6%
ZFS File Data 322707 2521 2%
Anon 9483981 74093 58%
Exec and libs 10027 78 0%
Page cache 253496 1980 2%
Free (cachelist) 33201 259 0%
Free (freelist) 5387854 42092 33%
Total 16487083 128805
Physical 16465391 128635
Please help