set heap_size using a percentage