If I have a 16C64G machine and install CentOS7.6 on it, There is 62gb available memory.
total used free shared buff/cache available Mem: 62 34 0 0 27 27 Swap: 0 0 0
According to the reference, I have 3 choices to set the jvm heap size:
31.5gb: The largest size I can set If I want to use compressed object pointers (compressed oops)
31gb: half of the system memory and use compressed object pointers (compressed oops)
30gb: The largest size I can set if I want to use zero based compressed oops.
So which is the best practise?