Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Service Development | Performing Data Validation | Preventing Running Out of Memory Error During Validation
 
Preventing Running Out of Memory Error During Validation
During validation of an XML node, a large maxOccurs value for an element in the IS schema used as the blueprint can cause an out of memory error or a stack overflow. To prevent a stack overflow or out of memory error, you can set a threshold value for maxOccurs. When the validation engine encounters a maxOccurs value greater than the threshold value, it proceeds as if the maxOccurs value was equal to 'unbounded'.
To set a maxOccurs threshold value, you can edit the server configuration parameter watt.core.schema.maxOccursThresholdValue. By default, this parameter does not have a value.
*To set a maxOccurs threshold value
1. Start Integration Server and open the Integration Server Administrator.
2. In the Settings menu of the navigation area, click Extended.
3. Click Edit Extended Settings. The server displays the Extended Settings screen.
4. In the text area under Extended Settings, type watt.core.schema.maxOccursThresholdValue=value where value is the number you want to use as the maxOccurs threshold.
5. Click Save Changes.