procmap Command

Purpose

Prints the address space map of processes.

Syntax

procmap [ -F ] ProcessID ...

Description

The /proc filesystem provides a mechanism to control processes. It also gives access to information about the current state of processes and threads, but in binary form. The proctools commands provide ascii reports based on some of the available information.

Most of the commands take a list of process IDs or /proc/ProcessID strings as input. The shell expansion /proc/* can therefore be used to specify all processes in the system.

Each of the proctools commands gathers information from /proc for the specified processes and displays it to the user. The proctools commands like procrun and procstop start and stop a process using the /proc interface.

The information gathered by the commands from /proc is a snapshot of the current state of processes, and therefore can vary at any instant except for stopped processes.

The procmap command prints the address space map of processes. It displays the starting address and size of each of the mapped segments in the process. It gets all the information necessary from the /proc/ProcessID/map files.

Flags

Item Description
-F Forces procmap to take control of the target process even if another process has control.
ProcessID Specifies the process id.

Examples

  1. To display the address space of process 12644, enter:
    procmap 12644
    The output of this command might look like this:
    12644 : -ksh                                                          
    10000000         232K  read/exec         ksh
    20000ef8          54K  read/write        ksh
    d008b100          80K  read/exec         /usr/lib/libiconv.a[shr4.0]
    f03e4c70          41K  read/write        /usr/lib/libiconv.a[shr4.o]
    d0080100          40K  read/exec         /usr/lib/libi18n.a[shr.o]
    f03f0b78           4K  read/write        /usr/lib/libi18n.a[shr.o]
    d007a000          11K  read/exec         /usr/lib/nls/loc/en_US
    d007d130           8K  read/write        /usr/lib/nls/loc/en_US
    d00790f8           2K  read/exec         /usr/lib/libcrypt.a[shr.o]
    f03e3508           0K  read/write        /usr/lib/libcrypt.a[shr.o]
    d02156c0        2282K  read/exec         /usr/lib/libc.a[shr.o]
    f03474e0         621K  read/write        /usr/lib/libc.a[shr.o]
       Total        3380K

Files

Item Description
/proc Contains the /proc filesystem.