[jira] [Created] (XERCESJ-1684) Very high memory usage validating XSD 1.1 (+memory leak)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (XERCESJ-1684) Very high memory usage validating XSD 1.1 (+memory leak)

JIRA xerces-j-dev@xml.apache.org
Simon Sprott created XERCESJ-1684:

             Summary: Very high memory usage validating XSD 1.1 (+memory leak)
                 Key: XERCESJ-1684
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1684
             Project: Xerces2-J
          Issue Type: Bug
          Components: JAXP (javax.xml.validation)
         Environment: windows java 1.8
            Reporter: Simon Sprott
            Priority: Critical
         Attachments: SAFTPT_1_04_01_XSD11_Full.zip, tmp.zip

using the 1.1 code branch built from

Using the built in sample validator
java jaxp.SourceValidator -xsd11 -a "SAFTPT_1_04_01_XSD11_Full.xsd" -i "tmp.xml"

The validation consumes huge amounts of memory (breaks at 10 GB on my system), on smaller sample files validation does complete, but still consumes a very large quanity of memory.

Furthermore it seems to retain the memory allocated via a reference in org.eclipse.wst.xml.xpath2.processor.internal.DefaultRSFactory._factory after the validator has completed (this is not evident in the cmd line sample as the process ends, but I have observed in in my own code).

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]