查看 data size
# pidin -p pid -f aNAd -o 255
查看 内存
# showmem -p pid
cat /proc/309854323/vmstat
as_stats.vm_region=122
as_stats.vm_map=403
as_stats.map_size=0x1835 (24.207MB)
as_stats.map_phys=0xff (1020.000kB)
as_stats.map_shared=0xd5c (13.359MB)
as_stats.map_private=0xad9 (10.847MB)
as_stats.rss=0x14e2 (20.882MB)
as_stats.flt_read=0
as_stats.flt_write=106
as_stats.flt_exec=0
as_stats.flt_zero=0
as_stats.flt_zfod=2491
as_stats.flt_cow=99
as_stats.flt_hit=244
as_stats.flt_miss=3253
as_stats.anon_rsv=0x791 (7.566MB)
as_stats.rlimit_data=0x1a4 (1.640MB)
#
top -i 1|grep Memory
Memory: 16373M total, 804M avail, page size 4K
#
#
# top -i 1|grep Memory | awk '{print $2}'|cut -f1 -d "M"
16373
#