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
If you are on ec2 and wanted to do mvn build then use -T option which tells maven to use number of threads while doing build
eg:mvn -T 10 clean package
mvn -T 10 clean package