Uploaded image for project: 'Xerces2-J'
  1. Xerces2-J
  2. XERCESJ-1751

Changing maxOccurs=unbounded to some finite number throws OOM in JVM

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.12.2
    • None
    • None
    • None
    • Linux

    Description

      Changing maxOccurs=unbounded to some finite number throws OOM in JVM. The finite number we have used is from 1000 to 5500 but the creates a memory starvation or resource exhaustion in all JVMs processing XMLs. 

      The ask to let us know if -

      1. Is there any boundary value that we can use for maxOccurs in our schema to overcome this issue?
      2. Is there any fix available in the latest Xerces versions that we can upgrade to and that does not create this OOM exception? Our current version is 2.12.2
      3. Is there any setting in the JVM (like Heap/Memory) that you recommend for us to use? The current heap size is 6GB for our JVMs
      4. Is there any attribute that can be added to the schema to fix this issue

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              partha007 Partha Pratim Paul
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: