When I run my Java code in Eclipse, I get the following message:
There is insufficient memory for the Java Runtime Environment to continue. Native memory all
I know the question talking about eclipse but i got the similar issue many times with Intellij as well and the solution for it was easy .. Just run the 64 bit exe not the 32 one which is always the default one.