The Java™ heap size is one of the most important tuning parameters of your JVM. A poorly chosen size can result in significant performance problems as the Garbage Collector has to work harder to stay ahead of utilization.
See How to do heap sizing for information on how to correctly set the size of your heap.