Sizing JVM Heap - Container scenario

Hi to all,

I have a doubt on how sizing JVM Heap.

According varius documentation:

When running in a container, such as Docker, total memory is defined as the amount of memory visible to the container, not the total system memory on the host.

and

Set Xmx and Xms to no more than 50% of your total system memory.

and

For Elasticsearch objects, make sure to consider the heap size when you set resource requirements. The heap size should be half the size of RAM allocated to the Pod.
Managing compute resources | Elastic Cloud on Kubernetes [1.0] | Elastic

So if i want to set 30 GB of Heap, I have to sizing a Container with 64 GB or just 32 GB is enough?

Thank you

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.