Bug 49291 - java.lang.OutOfMemoryError: Java heap space when opening 10MB Excel file
Summary: java.lang.OutOfMemoryError: Java heap space when opening 10MB Excel file
Status: RESOLVED INVALID
Alias: None
Product: POI
Classification: Unclassified
Component: HSSF (show other bugs)
Version: 3.6-FINAL
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-14 10:39 UTC by Victor Arabadzhiyski
Modified: 2010-05-14 10:51 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Arabadzhiyski 2010-05-14 10:39:12 UTC
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
Comment 1 Victor Arabadzhiyski 2010-05-14 10:40:34 UTC
Sample Excel file can be obtained from http://www.mh.government.bg/Articles.aspx?lang=bg-BG&pageid=390
Comment 2 Nick Burch 2010-05-14 10:51:20 UTC
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