Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对内存消耗大 #2

Open
zhugw opened this issue Dec 26, 2020 · 0 comments
Open

对内存消耗大 #2

zhugw opened this issue Dec 26, 2020 · 0 comments

Comments

@zhugw
Copy link

zhugw commented Dec 26, 2020

还是对内存消耗特别大 试了下解析一个46.2M的excel 76万行 7列 如果指定内存为-Xms512m -Xmx512m 会抛如下异常

java.lang.OutOfMemoryError: GC overhead limit exceeded

	at org.apache.xmlbeans.impl.store.Saver$TextSaver.resize(Saver.java:1701)
	at org.apache.xmlbeans.impl.store.Saver$TextSaver.preEmit(Saver.java:1319)
	at org.apache.xmlbeans.impl.store.Saver$TextSaver.emit(Saver.java:1206)
	at org.apache.xmlbeans.impl.store.Saver$TextSaver.emitElement(Saver.java:978)
	at org.apache.xmlbeans.impl.store.Saver.processElement(Saver.java:492)
	at org.apache.xmlbeans.impl.store.Saver.process(Saver.java:323)
	at org.apache.xmlbeans.impl.store.Saver$TextSaver.saveToString(Saver.java:1865)
	at org.apache.xmlbeans.impl.store.Cursor._xmlText(Cursor.java:546)
	at org.apache.xmlbeans.impl.store.Cursor.xmlText(Cursor.java:2436)
	at org.apache.xmlbeans.impl.values.XmlObjectBase.xmlText(XmlObjectBase.java:1500)
	at org.apache.poi.xssf.model.SharedStringsTable.xmlText(SharedStringsTable.java:139)
	at org.apache.poi.xssf.model.SharedStringsTable.readFrom(SharedStringsTable.java:129)
	at org.apache.poi.xssf.model.SharedStringsTable.<init>(SharedStringsTable.java:111)
	at org.apache.poi.xssf.eventusermodel.XSSFReader.getSharedStringsTable(XSSFReader.java:115)
	at net.fenghaitao.imports.ExcelReader.process(ExcelReader.java:29)
	at net.fenghaitao.AutoExcel.read(AutoExcel.java:569)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant