feng-haitao / auto-excel Goto Github PK
View Code? Open in Web Editor NEWA fast import and export tool for Excel.
Home Page: http://www.fenghaitao.net
License: MIT License
A fast import and export tool for Excel.
Home Page: http://www.fenghaitao.net
License: MIT License
还是对内存消耗特别大 试了下解析一个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)
OPCPackage pkg = OPCPackage.open(filename);
XSSFReader xssfReader = new XSSFReader(pkg);
importContext.setStylesTable(xssfReader.getStylesTable());
importContext.setSharedStringsTable(xssfReader.getSharedStringsTable());
sharedStringsTable 里面可以看到,空值的单元格会直接跳过没有解析获取到。 造成返回的DataSet的值错乱了。
大佬,导入报这个错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.