Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.lang.AbstractStringBuilder.<init>(Unknown Source) at java.lang.StringBuilder.<init>(Unknown Source) ....................... This happened when I tried to open and read a 11MB Excel file with 5200 rows and 6 columns
Sample Excel file can be obtained from http://www.mh.government.bg/Articles.aspx?lang=bg-BG&pageid=390
Many JVMs have a default heap size that is much too small for modern uses Simply increase the size of your heap when you start your jvm