[ 
https://issues.apache.org/jira/browse/XERCESJ-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13414574#comment-13414574
 ] 

Mukul Gandhi commented on XERCESJ-1573:
---------------------------------------

thanks for sharing the reports. I can see, that for all the examples you've 
tried for memory profiling, the peak memory usage is about 125 Mb. But this 
result is, when you've repeated the validation assessment 10000000 times. I'm 
not sure, if this a poor memory management by Xerces (since the repetitions 
were quite large).

The Xerces XSD 1.1 assertions implementation, uses DOM objects to implement the 
XPath 2.0 XDM model (which is a given, due to internal design of PsychoPath 
XPath engine) -- which I guess, leads to the implementation using more memory.

I see no easy way, of improving further the implementation quickly by design to 
optimize memory management. Unfortunately, my response to this issue would be 
"won't fix" due to the risks involved.
                
> 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]

Reply via email to