Skip to content

XMLEventReader OutOfMemoryError on very long but flat XML input #3840

Closed
@scabug

Description

@scabug

XMLEventReader can run out of memory on very long input of this type:

<foo>
  <bar/>
  <bar/>
  <!-- millions more <bar/> -->
</foo>

This type of input is typical for a table export with lots of rows.

I've traced this back to XMLEventReader.elem which generates dummy tags. These tags are then collected into the parent node in a NodeBuffer. Eventually, the NodeBuffer exhausts the available heap.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions