Skip to main content


Showing posts from April, 2011

Java Out of Memory Error

If we get an outofmemory error on java you can do the following:
1. If you are running your java program using eclipse
a. right click on project --> Run As --> Java Application --> Select Run Configurations
b. Give -Xms1024m in Arguments Tab --> VM arguments: This sets the virtual memory to 1 GB for jvm to run