You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
963 B

6 years ago
# **pmap**
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**pmap命令** 用于报告进程的内存映射关系是Linux调试及运维一个很好的工具
7 years ago
6 years ago
## 选项
```markdown
pmap [options] PID [PID ...]
Options:
-x, --extended 显示详细信息
-X 显示比-x更为详细的信息WARNING: format changes according to /proc/PID/smaps
-XX show everything the kernel provides
-c, --read-rc read the default rc
-C, --read-rc-from=<file> read the rc from file
-n, --create-rc create new default rc
-N, --create-rc-to=<file> create new rc to fileNOTE: pid arguments are not allowed with -n, -N
-d, --device 显示设备格式
-q, --quiet 不显示头尾行
-p, --show-path show path in the mapping
-A, --range=<low>[,<high>] limit results to the given range
7 years ago
```
6 years ago
## 实例
7 years ago
6 years ago
```bash
5 years ago
pmap PID # 分析进程号PID的内存线程栈
7 years ago
```