• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

pmap Command Examples in Linux

by admin

The pmap command reports the amount of memory that one or more processes are using. For example, use this command to determine which processes on the server are being allocated memory and whether this amount of memory is a cause of memory bottlenecks:

# pmap -x [pid]

Example below shows the total amount of memory the cupsd process is using:

# pmap -x 1796
1796:   /usr/sbin/cupsd
Address   Kbytes     RSS    Anon  Locked Mode   Mapping
08048000     244       -       -       - r-x--  cupsd
ffffe000       4       -       -       - -----    [ anon ]
-------- ------- ------- ------- -------
total kB    6364       -       -       -

pmap Command Examples

1. To report memory map of a process:

# pmap 2210 

2. To show the extended format:

# pmap -x 2210 

3. To show the device format:

# pmap -d 2210 

4. To hide header and footer lines:

# pmap -q 2210 

5. To show the version:

# pmap -V 

Filed Under: Linux

Some more articles you might also be interested in …

  1. semanage: command not found
  2. How to Configure Proxy in CentOS/RHEL/Fedora
  3. tic Command Examples in Linux
  4. halt: command not found
  5. How to Count lines in a file in UNIX/Linux
  6. How to find the inode size of an ext2/ext3/ext4 filesystem?
  7. ‘nestat -s’ showing a large number for “packet reassembles failed” errors in CentOS/RHEL
  8. Linux OS Service ‘kudzu’
  9. tee Command Examples in Linux
  10. CentOS / RHEL 7 : How to install kernel from rescue mode

You May Also Like

Primary Sidebar

Recent Posts

  • “aws s3 mv” Command Examples
  • “aws s3 mb” Command Examples
  • “aws s3 ls” Command Examples
  • “aws s3 cp” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright