OAG: Java.lang.OutOfMemoryError: Java Heap Space On Java Heap When Using Schema Validation Filter (Doc ID 2014014.1)

Last updated on FEBRUARY 22, 2017

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

OAG 11.1.2.3.0 on Linux. 16 GBytes of memory, default jvm.xml (i.e., -Xmx=4096m)

Problem:

Within a Schema Validation filter, the Gateway is running out of memory on the old generation.

ERROR [d0ea4700] java exception:
java.lang.OutOfMemoryError: Java heap space
at org.apache.xerces.impl.dtd.models.CMStateSet.(Unknown Source)
at org.apache.xerces.impl.xs.models.XSDFACM.buildDFA(Unknown Source)
at org.apache.xerces.impl.xs.models.XSDFACM.(Unknown Source)
at org.apache.xerces.impl.xs.models.CMBuilder.createDFACM(Unknown Source)
at org.apache.xerces.impl.xs.models.CMBuilder.getContentModel(Unknown Source)
at org.apache.xerces.impl.xs.XSComplexTypeDecl.getContentModel(Unknown Source)
at org.apache.xerces.impl.xs.XSConstraints.fullSchemaChecking(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
at javax.xml.validation.SchemaFactory.newSchema(SchemaFactory.java:627)
at com.vordel.circuit.schema.SchemaValidationProcessor.javaValidation(SchemaValidationProcessor.java:279)
at com.vordel.circuit.schema.SchemaValidationProcessor.invoke(SchemaValidationProcessor.java:228)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:150)
[...]

The problem has not been observed in an earlier 11.1.2.1.0 environment.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms