Assuming the system has enough memory to support 4/6/8 gb of heap (meaning the box itself has atleast 4+ gb free after accounting for the heap) you can use blasadmin to set the maxheap or edit the instance in the infra mgr and change it.