Details
Description
Change the calculation to not use the fraction blindly. For large containers - .e.g 10GB - this ends up leaving 2G of the container unused / outside of the heap.
Instead we can add another parameter which indicates the max amount of memory to leave outside the heap - defaulting to 1G