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
In your Eclipse installation directory you should be able to find the file eclipse.ini. Open it and find the -vmargs section. Adjust the value of:
Eclipse
eclipse.ini
-vmargs
-Xmx1024m
In this example it is set to 1GB.