Appending sheets to xlsx memory issues.

Moditha Hewasinghage <[email protected]>
Newsgroups gmane.comp.jakarta.poi.user
Message-ID <pony-52768244dbd3acd054130706aee14861434b2137-704a58de14d4c56fb887cd9035fdcc954e02d9ed@user.poi.apache.org>
Hi everyone,

I am trying to append a sheet into an existing xlsx and encountering memory issues. However, If I do not open an existing xlsx I can write far bigger files. I have an example code snippet here:

https://snippet.host/epsv

With 2GB of memory I only manage to append 3 sheets before I run out of memory in wb.write().

But I can easily create a new workbook and append 10 sheets without any issue. Could you please tell me if I am doing a mistake somewhere or if there is an alternative for this.

Thank you,
Regards
Moditha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.