06-12-2018 03:16 AM
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!
06-12-2018 06:16 AM
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
06-13-2018 07:24 AM
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