Thiago,
You can set the MaxHeap in the NetWeaver configtool.
Just Make sure that you have the "Available RAM" on the server to support this and please note that the MaxHeap value applies to each java server node in the cluster individually. So if you have 2 nodes with a max heap of 8GBs that is actually allocating 16GBs of RAM to NetWeaver.
Sam