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 2019/08/11 08:28:51 UTC

[Bug 63657] New: Memory usage increase during writing Documents introduced in 4.0.0

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

            Bug ID: 63657
           Summary: Memory usage increase during writing Documents
                    introduced in 4.0.0
           Product: POI
           Version: 4.0.0-FINAL
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P2
         Component: XSSF
          Assignee: dev@poi.apache.org
          Reporter: dominik.stadler@gmx.at
  Target Milestone: ---

The changes for bug #62130 introduced a large memory increase due to the way
Apache XMLBeans handles references to the CTCellImpl objects in
XSSFRow/CTRowImpl and XSSFCell.

During writing a document, all CTCellImpl objects are now copied, while the
CTRowImpl in XSSFRow still keeps a reference to the previous object, thus
causing double memory usage until the XSSFWorkbook is removed from memory.

-- 
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 63657] Memory usage increase during writing Documents introduced in 4.0.0

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

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Depends on|                            |62130


Referenced Bugs:

https://bz.apache.org/bugzilla/show_bug.cgi?id=62130
[Bug 62130] XSSFRow can lose sync between CTRow and XSSFCell references to
CTCell instances
-- 
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 63657] Memory usage increase during writing Documents introduced in 4.0.0

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

Dominik Stadler <do...@gmx.at> changed:

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

--- Comment #1 from Dominik Stadler <do...@gmx.at> ---
Fixed via r1864977, XMLBeans is quite hard to handle here, setCArray() does not
set the passed objects, but rather populates existing ones if possible, so the
code in XSSFRow.onDocumentWrite() actually duplicated all CTCellImpl objects
and kept both until the XSSFWorkbook was freed up.

-- 
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