top | item 35204678

(no title)

bno1 | 3 years ago

Well yes, because on Linux you use mmap to reserve virtual memory.

I wouldn't say that tooling is not aware of all that. For example, top and htop display virtual memory and resident memory and shared memory. You need to look at resident memory if you want to know physical memory usage.

discuss

order

pojzon|3 years ago

What I meant by tooling not being aware is that its hard to pinpoint what exactly is using that memory.

Best you can do is do dumps, verify, enable NMT, verify.

It gives me no value to know that my heap is 60m, but my RSS is 600mb while reserved is 40GB. Need more details and those are not always provided i.e. “Unknown” category in NMT details.

Best is that top, pmap and nmt are all showing completely different values for resident size :> and its not a unit issue.

adra|3 years ago

Not dumped to the OS of course, but JMX does have metrics for a lot of the in use non heap storage like codegen, profiler, etc..