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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
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: [hidden email]
          Reporter: [hidden email]
  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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

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

Dominik Stadler <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63657

Dominik Stadler <[hidden email]> changed:

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

--- Comment #1 from Dominik Stadler <[hidden email]> ---
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: [hidden email]
For additional commands, e-mail: [hidden email]