/proc/pid/maps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am running an application and observing a memory leak. I took two snapshots of “maps”. One is before starting the action which is causing memory leak and another is after memory leak.

 

Following are the snapshots:

 

Before:

=======

# cat /proc/481/maps

0fba9000-0fcdf000 r-xp 00000000 00:0a 371        /lib/libc-2.3.3.so

0fcdf000-0fce9000 ---p 00136000 00:0a 371        /lib/libc-2.3.3.so

0fce9000-0fcf3000 rwxp 00130000 00:0a 371        /lib/libc-2.3.3.so

0fcf3000-0fcf6000 rwxp 0fcf3000 00:00 0

0fd06000-0fd19000 r-xp 00000000 00:0a 466        /lib/libgcc_s.so.1

0fd19000-0fd26000 ---p 00013000 00:0a 466        /lib/libgcc_s.so.1

0fd26000-0fd2a000 rwxp 00010000 00:0a 466        /lib/libgcc_s.so.1

0fd3a000-0fdad000 r-xp 00000000 00:0a 455        /lib/libm-2.3.3.so

0fdad000-0fdba000 ---p 00073000 00:0a 455        /lib/libm-2.3.3.so

0fdba000-0fdc0000 rwxp 00070000 00:0a 455        /lib/libm-2.3.3.so

0fdd0000-0fec6000 r-xp 00000000 00:0a 459        /lib/libstdc++.so.6.0.9

0fec6000-0fed0000 ---p 000f6000 00:0a 459        /lib/libstdc++.so.6.0.9

0fed0000-0fedb000 rwxp 000f0000 00:0a 459        /lib/libstdc++.so.6.0.9

0fedb000-0fee2000 rwxp 0fedb000 00:00 0

0fef2000-0fefe000 r-xp 00000000 00:0a 514        /usr/lib/libixml.so

0fefe000-0ff02000 ---p 0000c000 00:0a 514        /usr/lib/libixml.so

0ff02000-0ff0e000 rwxp 00000000 00:0a 514        /usr/lib/libixml.so

0ff0e000-0ff0f000 rwxp 0ff0e000 00:00 0

0ff1f000-0ff2d000 r-xp 00000000 00:0a 361        /lib/libpthread-0.10.so

0ff2d000-0ff2f000 ---p 0000e000 00:0a 361        /lib/libpthread-0.10.so

0ff2f000-0ff3e000 rwxp 00000000 00:0a 361        /lib/libpthread-0.10.so

0ff3e000-0ff80000 rwxp 0ff3e000 00:00 0

0ff90000-0ff95000 r-xp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so

0ff95000-0ffa0000 ---p 00005000 00:0a 368        /lib/libcrypt-2.3.3.so

0ffa0000-0ffa5000 rwxp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so

0ffa5000-0ffcc000 rwxp 0ffa5000 00:00 0

0ffdc000-0ffe0000 r-xp 00000000 00:0a 510        /usr/lib/liberrhand.so

0ffe0000-0ffec000 ---p 00004000 00:0a 510        /usr/lib/liberrhand.so

0ffec000-0fff0000 rwxp 00000000 00:0a 510        /usr/lib/liberrhand.so

10000000-101b2000 r-xp 00000000 00:0a 1685       /opt/bgpd/bin/bgpd

101c2000-101d1000 rwxp 001b2000 00:0a 1685       /opt/bgpd/bin/bgpd

101d1000-157cc000 rwxp 101d1000 00:00 0

30000000-30016000 r-xp 00000000 00:0a 357        /lib/ld-2.3.3.so

30016000-30019000 rw-p 30016000 00:00 0

30019000-30022000 rw-s 00000000 00:06 0          /SYSV024f823f (deleted)

30022000-30023000 rw-s 00000000 00:06 163845     /SYSV0001ed23 (deleted)

30026000-30027000 rwxp 00016000 00:0a 357        /lib/ld-2.3.3.so

7feff000-80000000 rwxp 7feff000 00:00 0

 

After:

=====

# cat /proc/481/maps

0fba9000-0fcdf000 r-xp 00000000 00:0a 371        /lib/libc-2.3.3.so

0fcdf000-0fce9000 ---p 00136000 00:0a 371        /lib/libc-2.3.3.so

0fce9000-0fcf3000 rwxp 00130000 00:0a 371        /lib/libc-2.3.3.so

0fcf3000-0fcf6000 rwxp 0fcf3000 00:00 0

0fd06000-0fd19000 r-xp 00000000 00:0a 466        /lib/libgcc_s.so.1

0fd19000-0fd26000 ---p 00013000 00:0a 466        /lib/libgcc_s.so.1

0fd26000-0fd2a000 rwxp 00010000 00:0a 466        /lib/libgcc_s.so.1

0fd3a000-0fdad000 r-xp 00000000 00:0a 455        /lib/libm-2.3.3.so

0fdad000-0fdba000 ---p 00073000 00:0a 455        /lib/libm-2.3.3.so

0fdba000-0fdc0000 rwxp 00070000 00:0a 455        /lib/libm-2.3.3.so

0fdd0000-0fec6000 r-xp 00000000 00:0a 459        /lib/libstdc++.so.6.0.9

0fec6000-0fed0000 ---p 000f6000 00:0a 459        /lib/libstdc++.so.6.0.9

0fed0000-0fedb000 rwxp 000f0000 00:0a 459        /lib/libstdc++.so.6.0.9

0fedb000-0fee2000 rwxp 0fedb000 00:00 0

0fef2000-0fefe000 r-xp 00000000 00:0a 514        /usr/lib/libixml.so

0fefe000-0ff02000 ---p 0000c000 00:0a 514        /usr/lib/libixml.so

0ff02000-0ff0e000 rwxp 00000000 00:0a 514        /usr/lib/libixml.so

0ff0e000-0ff0f000 rwxp 0ff0e000 00:00 0

0ff1f000-0ff2d000 r-xp 00000000 00:0a 361        /lib/libpthread-0.10.so

0ff2d000-0ff2f000 ---p 0000e000 00:0a 361        /lib/libpthread-0.10.so

0ff2f000-0ff3e000 rwxp 00000000 00:0a 361        /lib/libpthread-0.10.so

0ff3e000-0ff80000 rwxp 0ff3e000 00:00 0

0ff90000-0ff95000 r-xp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so

0ff95000-0ffa0000 ---p 00005000 00:0a 368        /lib/libcrypt-2.3.3.so

0ffa0000-0ffa5000 rwxp 00000000 00:0a 368        /lib/libcrypt-2.3.3.so

0ffa5000-0ffcc000 rwxp 0ffa5000 00:00 0

0ffdc000-0ffe0000 r-xp 00000000 00:0a 510        /usr/lib/liberrhand.so

0ffe0000-0ffec000 ---p 00004000 00:0a 510        /usr/lib/liberrhand.so

0ffec000-0fff0000 rwxp 00000000 00:0a 510        /usr/lib/liberrhand.so

10000000-101b2000 r-xp 00000000 00:0a 1685       /opt/bgpd/bin/bgpd

101c2000-101d1000 rwxp 001b2000 00:0a 1685       /opt/bgpd/bin/bgpd

101d1000-17a25000 rwxp 101d1000 00:00 0

30000000-30016000 r-xp 00000000 00:0a 357        /lib/ld-2.3.3.so

30016000-30019000 rw-p 30016000 00:00 0

30019000-30022000 rw-s 00000000 00:06 0          /SYSV024f823f (deleted)

30022000-30023000 rw-s 00000000 00:06 163845     /SYSV0001ed23 (deleted)

30026000-30027000 rwxp 00016000 00:0a 357        /lib/ld-2.3.3.so

7feff000-80000000 rwxp 7feff000 00:00 0

 

My applications name is “/opt/bgpd/bin/bgpd”.

 

It is seen that the red marked section is consuming the memory. Who is consuming this memory?

 

Regards,

Mano


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]