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
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
Comments