Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-20-2011, 10:32 AM   #1
Registered: Oct 2005
Posts: 540

Rep: Reputation: 32
pmap vs jmap

Can someone explain how these 2 differ? I ran both of them against a Java process and it appears they report the same shared libraries but each report a different amount of memory used. The pmap in particular also separates the code and data section of the shared libraries, and also a lot of other non shared libraries stuff. Just wondering which reports the true memory usage.
Old 06-20-2011, 11:35 AM   #2
LQ Newbie
Registered: Jun 2011
Posts: 8

Rep: Reputation: Disabled
As far as I can tell from the jmap manpage, jmap does not show the stack of the selected process.
Maybe this brings in a slight difference in reporting the mem usage. Please correct me if I am wrong.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pmap grob115 Linux - General 9 05-26-2011 07:37 PM
Pmap update fraFFfra Linux - Newbie 3 10-08-2010 05:46 AM
pmap -x available on all linux? amol28kulkarni Linux - Newbie 1 01-24-2009 02:44 AM
interpreting output of pmap on Linux kernel 2.4 rhegde Linux - General 0 08-20-2006 02:32 AM
pmap for linux doraemona Linux - General 0 05-11-2002 05:43 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration