"If running on bare metal, set the heap to whatever size the application needs, but less than available RAM; for a container set to less than 75% of container memory. Set using -Xmx or -XX:MaxRAMPercentage=75 - but note applications and 3rd party products using off-heap memory may need this lower"