Map file.
-*- mode: outline; coding: utf-8 -*-
* Cpu consumption.
** Linux.
*** Interactive.
$ top
*** Static.
$ ps -eo %cpu,pid,cmd --sort=%cpu
** FreeBSD.
*** Interactive.
$ top
** Windows.
cmd> taskmgr
** Solaris.
See
http://developers.sun.com/solaris/articles/prstat.html
Topping top in Solaris 8 with prstat.
*** Interactive.
$ perfmeter
*** Static.
$ prstat
$ mpstat <num> <seconds>
* Memory consumption.
** Linux.
*** Interactive.
$ top
*** Static.
Vitual and resident memory size:
$ ps -eo vsz,rsz,pid,cmd --sort=vsz
Swap size and usage:
$ free
** FreeBSD.
*** Interactive.
$ top
*** Static.
Swap size:
$ swapinfo
$ pstat -s
Swap usage:
$ vmstat
** Solaris.
$ sar -g
$ vmstat
$ prstat -s size
** Windows.
cmd> taskmgr
and add colums TODO.
** Solaris.
$ prstat -a
* Opened file by process.
** Linux.
$ lsof -p <pid>
** FreeBSD.
$ fstat -p <pid>
** Windows.
* Opened file by user.
** FreeBSD.
$ fstat -u <user>
* Opened network connection by process.
** Linux.
$ lsof -i[46][protocol][@{hostname|hostaddr}][:{service|port}]
46 - IPV4 or IPV6
protocol - tcp, udp
** FreeBSD.
** Windows.