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

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

@ Jorge: as per following documentation about the JAXP Validator, 
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/Validator.html
 

"A validator is a thread-unsafe and non-reentrant object."

Therefore I would not expect ideally the Validator object to be reused after a 
schema validation assessment.

Also, the workaround I suggested earlier in this thread (i.e, to create a new 
Validator object for each iteration of the loop -- which naturally resets the 
Validator object's memory), seem to solve the memory bottleneck problem.

Please correct me, if I'm wrong.
                
> 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]

Reply via email to