You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2023/02/02 09:38:34 UTC

[Bug 66458] New: OOM caused by file reading

https://bz.apache.org/bugzilla/show_bug.cgi?id=66458

            Bug ID: 66458
           Summary: OOM caused by file reading
           Product: POI
           Version: 5.2.2-FINAL
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: 572312204@qq.com
  Target Milestone: ---

FileInputStream fis = FileUtils.openInputStream(importFile);
Workbook workbook = WorkbookFactory.create(fis);
When an Excel file is read, the size of the importFile file is only 2 MB, but
the workbook occupies more than 300 MB memory. As a result, OOM occurs. Can you
optimize the file reading, which is similar to the SXSSFWorkbook and reads some
lines?

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[Bug 66458] OOM caused by file reading

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=66458

Axel Howind <ax...@dua3.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Axel Howind <ax...@dua3.com> ---


*** This bug has been marked as a duplicate of bug 66460 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org