Looking in the JvmMetrics at both MemMaxM and MemHeapMaxM, they have the same exact values. So what's the deal with these two? Why are they the same exact value in if I only set -Xmx30000m?
Thanks in advance!
In your case MemMaxM = MemHeapMaxM. It is ok and it will not give any issue in most of the cases.
But the best practice is, MemMaxM should be greater than MemHeapMaxM. May be MemHeapMaxM should be upto 80% of MemMaxM. MemHeapMaxM will dynamically allocate the resource from MemMaxM, so it should not be greater than MemMaxM
Thanks for your prompt response! I do have a followup question, how do you define both of these? I'm assuming Xmx is the MemHeapMaxM but how do you set MemMaxM ?
I've written a small blog in the below link long back regarding memory, javaopt - heap, etc. It may help you
you can do a temporary or permanent setup.
For permanent - use either cloudera (or) directly update the <service>-site.xml file
For temporary - the below link will explain