[
https://issues.apache.org/jira/browse/XERCESJ-1573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13415667#comment-13415667
]
Mukul Gandhi commented on XERCESJ-1573:
---------------------------------------
I've just attached a test case (named XS11Validate.java) to iterate XSD 1.1
validations. When I do validation using this test file, using good.xml &
duration.xsd posted by Jorge iterating 1000000 times I take a heap dump of the
running JVM after about a minute of execution and I get following memory usage
results (i.e the leak suspects),
org.eclipse.wst.xml.xpath2.processor.internal.XPathFlex : 196,520 (20.92%) bytes
org.eclipse.wst.xml.xpath2.processor.internal.XPathCup : 95,696 (10.19%) bytes
This time, the heap dump tool doesn't report that the object PSVIElementNSImpl
is a leak suspect and the overall memory consumption is reasonable. This makes
me believe, that the way jaxp.SourceValidator tool is running repeating
validations is consuming more memory then for e.g, this test case.
I therefore, cannot accept the argument that Xerces is using memory
inefficiently while using XSD 1.1 assertions!
> 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: XS11Validate.java, 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]