This discussion is archived
3 Replies Latest reply: Jun 15, 2012 6:00 AM by Timas RSS

jrcmd unclear value of heap size

Timas Newbie
Currently Being Moderated
jrockit command ./jrcmd 27325 heap_diagnostics

return

27325:
======== BEGIN OF HEAPDIAGNOSTIC =========================

Invoked from diagnosticcommand

Total memory in system: 34225520640 bytes
Available physical memory in system: 1652965376 bytes
-Xmx (maximal heap size) is 536870912 bytes
Heapsize: 536870912 bytes ~512mb
Free heap-memory: 190137256 bytes~180mb

mmStartCompaction = 0x5700000, mmEndCompaction = 0x7700000


--------- Detailed Heap Statistics: ---------
28,7% 40541k 329327 -440k [C
9,1% 12821k 33636 -792k [B

........
*141344kB* total --- ~140mb


"Heapsize" - "Free heap-memory" = 512mb-180mb = 332mb is used, but log showed 140mb(141344kB total) is used. Why is such difference?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points