You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2002/12/09 16:04:18 UTC
DO NOT REPLY [Bug 15178] New: -
OutOfMemoryError
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15178>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15178
OutOfMemoryError
Summary: OutOfMemoryError
Product: POI
Version: 1.5.1
Platform: PC
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: HSSF
AssignedTo: poi-dev@jakarta.apache.org
ReportedBy: Holger.Schulz@epost.de
Hello!
I can create a sheet with 10000 rows.
When I try to create a sheet with 30000 rows I get an OutOfMemoryError.
Greetings from Germany
Holger
P.S. I tried the VM argument "-Xmx128m" (J2SE 1.4.1) without any effect.
public static void main(String[] args) throws IOException {
HSSFWorkbook workbook = new HSSFWorkbook();
HSSFSheet sheet = workbook.createSheet("Test");
for (short i = 1; i < 30000; i++) {
HSSFRow row = sheet.createRow(i);
for (short j = 0; j < 50; j++) {
row.createCell(j).setCellValue("content");
}
}
FileOutputStream fos = new FileOutputStream("c:/temp/linetest.xls");
workbook.write(fos);
}