Heap size is the amount of memory allocated to JVM for execution. Heap size setting is very critical as very small heap size cause JVM to frequent garbage collection which may lead to out of memory error at the same time too large heap size takes longer time to garbage collection. In both the case, performance of site is impacted so best option is to customize heap size that suits your application. 256MB of Heap size work best in most of the cases.