Fork me on GitHub

Hey, maybe not the best place to ask but trying to understand what’s the right size to use for the heap of an application. I see different opinions online with people saying that the max heap size should be 25% of your available memory and others arguing it should be ~80% Anybody with experience and insights in how to tune this properly ?


@thomas.ormezzano based on my experience, for the applications that me and my team are running was to set a min and max heap to a concrete value (e.g. 2G or 125M) - it's a bit of a trial and error but we found that this way we know if we can move applications to smaller/bigger machines rather than let them just consume available RAM (if set to 80%) or underutilize resources (if set to 25%)

👍 4