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

            Bug ID: 69558
           Summary: Selecting appropriate file we can make Apache POI to
                    crash
           Product: POI
           Version: 5.2.3-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: gaguilardelg...@medallia.com
  Target Milestone: ---

This bug is related to the one #69557. 

In this case the size of the chunk is bigger that the maximum allowed size.


Triggering an exception with the following text:


 Tried to allocate an array of length 228,086,860, but the maximum length for
this record type is 100,000,000. If the file is not corrupt and not large,
please open an issue on bugzilla to request increasing the maximum allowable
size for this record type. You can set a higher override value with
IOUtils.setByteArrayMaxOverride(). 


Increasing the maxByteArray size will not help here that much because it will
make the machine to explode reading files. Since Apache POI will keep
allocating huge chunks of buffers and explode before GC can recollect the ones
freed. 

A better strategy as commented in #69557 is to allocate fixed size buffers and
keep reading from it while processing as ring buffer or so.

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

Reply via email to