Why does SXSSF workbook (Apache POI) create larger xlsx sizes than Excel?
问题 I developed a Java class to use the SXSSF workbook to overcome the Java Heap error which is always caused by the XSSF workbook when writing very large spreadsheets. See http://poi.apache.org/spreadsheet/how-to.html#sxssf for the solution. In short, I use workbook = new SXSSFWorkbook(SXSSFWorkbook.DEFAULT_WINDOW_SIZE); instead of workbook = new XSSFWorkbook(); This solution works like magic and I am now able to write very large xlsx spreadsheets with a much lower memory footprint. However,