Freebsd procstat utility gives detailed information about all of the processes on the system or just for a given process id number, such as virtual memory mapping, thread stack, command line arguments and open files.
Running procstat with "-a" argument prints information like pid,pid,login, process name, wchan (which event the process waiting) of all processes on the system.
# procstat -a
Procstat "-c" option shows you the command line arguments of a process and "-f" option shows opened files by given process.Following sample output shows the command line arguments and the files currently opened with their permissions by vi process.
You can access virtual memory mapping information a process with "-v" option. Following sample shows vi process virtual memory mappings.
Finally, "-k" option shows kernel threads stacks details of given process.
getting detailed process information on Freebsd
http://lserinol.blogspot.com/2009/05/getting-detailed-process-information-on.html
FreeBSD进程信息获取教程
本文介绍了使用FreeBSD的procstat实用程序获取系统上所有进程或特定进程ID的详细信息的方法,包括虚拟内存映射、线程堆栈、命令行参数和打开文件。
1714

被折叠的 条评论
为什么被折叠?



