Results 1 to 4 of 4
Hi all,
can anyone tell me how to find the memory map of any process? I used the pmap on unix. But my requirement is to check how much memory ...
- 06-24-2010 #1Just Joined!
- Join Date
- Aug 2007
- Posts
- 7
Tools for memory mapping
Hi all,
can anyone tell me how to find the memory map of any process? I used the pmap on unix. But my requirement is to check how much memory has been allocated from any library files.
For example suppose i have one a.exe and it load one abc.so file which allocate some memory. so can there be any utility to trace which memory is invoked by which .so file.
Regards,
Manish Gurnaney
- 06-24-2010 #2Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
Hi ,,
There will a directory created for each process inside /proc ..
you can look into /proc/"proc-id"/map
eg..
-sh-3.2# cat /proc/3318/maps
00173000-0029c000 r-xp 00000000 fd:00 1081738 /lib/libcrypto.so.0.9.8e
0029c000-002af000 rwxp 00129000 fd:00 1081738 /lib/libcrypto.so.0.9.8e
002af000-002b3000 rwxp 002af000 00:00 0
0039e000-0039f000 r-xp 0039e000 00:00 0 [vdso]
005bd000-005c8000 r-xp 00000000 fd:00 1080508 /lib/libgcc_s-4.1.2-20080825.s.1
005c8000-005c9000 rwxp 0000a000 fd:00 1080508 /lib/libgcc_s-4.1.2-20080825.s.1
does that answer your query..?
- 06-24-2010 #3Just Joined!
- Join Date
- Aug 2007
- Posts
- 7
Tools for memory mapping
Hi Narayanan,
I have tried that that gives me Heap Memoray as a separate entry. What i am looking for when i am allocating a memory from heap through a library/So file i should be able to trace it that total how much memory has been allocated from heap for a specific library.
Regards,
Manish
- 06-24-2010 #4Just Joined!
- Join Date
- Jun 2010
- Posts
- 2
oh....i think you need memory tracing tool..will try to find one if possibe....


Reply With Quote
