Java OutofMemory Exception while executing PIG commands in grunt shell


3 Answer(s)


hi Pramod,

Please go through this link http://javahowto.blogspot.in/2006/06/6-common-errors-in-setting-java-heap.html

Thanks

HI,

Thanks for your response.

what should be the values that I can provide for minHeap and MaxHeap values, so that I would not get OutofMemory exception again, provided my clouderaVM has 3GB Memory allocated.

Having minHeap as 512MB and MaxHeap as 1024MB will help me in this case?

Thanks,
Pramod

hi Pramod,

We are not sure what kind of data is being loaded into PIG shell which is taking giving the error message. There are two things which you can try out

- Move to the original setting of minHeap and MaxHeap and restart VM.
- If this doesn't help, try with 512 and 1024MB.

Thanks