tuning of heap size to lower memory requirements