[
https://issues.apache.org/jira/browse/XERCESJ-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414781#comment-13414781
]
Michael Glavassevich commented on XERCESJ-1573:
-----------------------------------------------
I haven't looked too deeply at this but certainly see the potential for leaks
in XMLAssertPsychopathXPath2Impl. It doesn't seem to have an explicit reset()
back to its initial state. Aside from the DOM processing which looks suspect,
there are stacks where items are pushed, but may never be popped if an
exception occurs in the middle of processing. Without a call to Stack.clear()
when they're reused they may just keep growing (i.e. leaking memory) until the
JVM eventually runs out of memory.
Other components in Xerces were designed to reinitialize themselves on reuse.
Looks like this one needs a revisit.
> Possible memory leak when using assertions
> ------------------------------------------
>
> Key: XERCESJ-1573
> URL: https://issues.apache.org/jira/browse/XERCESJ-1573
> Project: Xerces2-J
> Issue Type: Bug
> Components: XML Schema 1.1 Datatypes
> Affects Versions: 2.11.0
> Reporter: Jorge L. Williams
> Priority: Blocker
> Attachments: d1.png, d2.png, d3.png, d4.png, d5.png, d6.png,
> duration-sans-assert.xsd, duration.xsd, good.xml, mem.png
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]