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

python - How to create a legend for 3D bar in matplotlib? -

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -