Hi,
I am trying this code for checking
java heap memory, but somehow the stats doesn't look right
free memory: 3,117
allocated memory: 4,096
max memory: 1,048,576
total free memory: 1,047,597
total 4194304used 1004064
free memory: 3,115
allocated memory: 4,096
max memory: 1,048,576
total free memory: 1,047,595
total1 4194304used1 1004192
Looking at the first stats, it looks like a long takes 2 kb of memory. And the second stats, which is in bytes say that it is taking around 128 bytes of memory. Not sure if it is correct.
Thanks,
[HENRY: Fixed code tags]