Re: POI XWPF memory issue
Dominik Stadler <[email protected]>
| Newsgroups | gmane.comp.jakarta.poi.user |
|---|---|
| Message-ID | <CABdJj56rS8855b9uzhL=ZkfEF8ASS54n9mugf0j5=oskfkB5cg@mail.gmail.com> |
Hi, The classes for Word/XWPF do not have such a mode, only Excel/XSSF via the SXSSF classes support writing very large documents. How large is the current memory of your Java process and can't you provide a bit more via the -Xmx<n> setting of Java? Dominik. On Wed, Jun 30, 2021 at 11:03 PM Steve Longitude <[email protected]> wrote: > I am trying to create large Word document using POI XWPF java API. At some > point I am getting OutOfMemoryError: GC overhead limit exceeded. > Is there some way to flush temporary result to IO, something similar to > the SXSSFSheet flushRows()? > Or is there some other way to write temporary result to IO and release > memory? > > Thank you > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >