Memory efficient formula evaulation in Apache POI
Summary An 13 MB Excel file (XSSF) loaded into an Apache POI XSSFWorkbook consumed ~1.5 GB of heap memory, causing OutOfMemoryError or severe GC pressure. The root cause is the inherent memory overhead of the XML DOM parser (Apache POI’s OoxmlParser) required to read the file, combined with the Formula evaluator keeping calculated values in … Read more