There's nothing to figure out. If you want to use all your ram (like in go) just set -Xmx<all_your_ram>.
https://www.elastic.co/guide/en/elasticsearch/reference/curr...
You also often want to stay below 32 gb to get compressed OOPs
Imagine launching every app and having to say ok you get 300mb but not more!
Of course there are ways to use all the available ram when you deploy your kubernetes pods, you just have to consult the documentation.
Honestly this criticism is ridiculous I can’t believe I even bothered to reply.