Summary: | Extreme memory usage in XSSF workbook | ||
---|---|---|---|
Product: | POI | Reporter: | Rob W <rob> |
Component: | XSSF | Assignee: | POI Developers List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P2 | ||
Version: | 3.5-dev | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | Sample code that illustrates the bug |
Description
Rob W
2009-02-26 14:48:15 UTC
This may not be a Macintosh-only problem. I am hoping to test on another platform shortly. Just tested with the same result under Windows Vista, so this does not appear to be a platform-specific issue. Created attachment 23317 [details]
Sample code that illustrates the bug
I am resubmitting my original attachment (unchanged), as it isn't appearing in the bug. If there is a delay and I've submitted it twice, I apologize.
XSSF is xml based, so processing the files will always take more memory than using HSSF. Also, in the interests of developer time, we use XML Beans, which allows faster development at the expense of more memory used. If this is proving to be a problem for you, do please do some profiling to identify the heavy memory use areas, and contribute back patches to reduce the memory use! There was a discussion about it some time ago. See http://markmail.org/thread/vqut6wy3ashguz6x A possible workaround is to stream your data directly in XML. See an example demonstrating my idea: http://svn.apache.org/repos/asf/poi/trunk/src/examples/src/org/apache/poi/xssf/usermodel/examples/BigGridDemo.java Yegor |