memory management - Mem usage is different from TOP and JMAP for java application -


it's reducer program in hadoop job. "top" command tells me res 4.0g mem, , data 4.5g. , system begins use swap. run reducer -xmx4g option.

in same time, use jmap see histogram of objects

 jmap -histo pid 

and tells me in total things in heap sum 1.3g mem. repeated several times , result same. why such big difference between top , jmap, remaining memory?

i use sun java 7 , in program there's lots of int[] (allocated new).

thanks.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -