Elasticsearch ram size

The documentation you took a screenshot from is for Elasticsearch 7.15, which I recommended to use earlier in this thread.

The link I shared for 7.7 (Setting the heap size | Elasticsearch Guide [7.7] | Elastic) says:

  • Set Xmx and Xms to no more than 50% of your physical RAM. Elasticsearch requires memory for purposes other than the JVM heap and it is important to leave space for this. For instance, Elasticsearch uses off-heap buffers for efficient network communication, relies on the operating system’s filesystem cache for efficient access to files, and the JVM itself requires some memory too. It is normal to observe the Elasticsearch process using more memory than the limit configured with the Xmx setting.
  • Set Xmx and Xms to no more than the threshold that the JVM uses for compressed object pointers (compressed oops); the exact threshold varies but is near 32 GB.

So use Half of the RAM available and no more than 30gb of HEAP.