poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clemens <clemens...@mysign.ch>
Subject Re: Yet another
Date Thu, 23 Dec 2010 15:02:21 GMT

given 1G of jvm heap space, my tests have shown, that a 4M xlsx throws a OOM:

java.lang.OutOfMemoryError: Java heap space
	at
org.apache.xmlbeans.impl.store.Locale$ScrubBuffer.<init>(Locale.java:1885)
	at org.apache.xmlbeans.impl.store.Locale.getScrubBuffer(Locale.java:1904)
	at org.apache.xmlbeans.impl.store.Xobj.getValueAsString(Xobj.java:1205)
	at org.apache.xmlbeans.impl.store.Xobj.fetch_text(Xobj.java:1796)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.get_wscanon_text(XmlObjectBase.java:1332)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.check_dated(XmlObjectBase.java:1269)
	at
org.apache.xmlbeans.impl.values.JavaLongHolder.longValue(JavaLongHolder.java:53)
	at
org.apache.xmlbeans.impl.values.XmlObjectBase.getLongValue(XmlObjectBase.java:1502)
	at
org.openxmlformats.schemas.spreadsheetml.x2006.main.impl.CTRowImpl.getR(Unknown
Source)
	at org.apache.poi.xssf.usermodel.XSSFRow.getRowNum(XSSFRow.java:321)
	at org.apache.poi.xssf.usermodel.XSSFSheet.initRows(XSSFSheet.java:180)
	at org.apache.poi.xssf.usermodel.XSSFSheet.read(XSSFSheet.java:147)
	at
org.apache.poi.xssf.usermodel.XSSFSheet.onDocumentRead(XSSFSheet.java:134)
	at
org.apache.poi.xssf.usermodel.XSSFWorkbook.onDocumentRead(XSSFWorkbook.java:235)
	at org.apache.poi.POIXMLDocument.load(POIXMLDocument.java:190)
	at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init>(XSSFWorkbook.java:182)
	at
org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:63)
	at
ch.mysign.cms.exchange.importer.util.ExcelAnalyser.getHeaderCols(ExcelAnalyser.java:74)
	at
ch.mysign.cms.exchange.importer.util.ExcelAnalyserTests.bigXLSXFileSizeTest(ExcelAnalyserTests.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
	at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
	at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
	at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
	at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)


-- 
View this message in context: http://apache-poi.1045710.n5.nabble.com/Yet-another-Out-of-memory-tp3316218p3316560.html
Sent from the POI - Dev mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message