Set the heap size settings directly to avoid any computations.