heap size should be half ram