Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
The BizTalk service restarts unexpectedly when you map large messages in BizTalk Server 2004
Article ID: 913959 - View products that this article applies to.
When you map large messages in Microsoft BizTalk Server 2004, the BizTalk service may restart unexpectedly. You may receive an error message in the Application log in Event Viewer that is similar to the following:
Event Type: Warning
Event Source: BizTalk Server 2004
Event Category: BizTalk Server 2004
Event ID: 5410
An error has occurred that requires the BizTalk service to terminate. The most common causes are an unexpected out of memory error and an inability to connect or a loss of connectivity to one of the BizTalk databases. The service will shutdown and auto-restart in 1 minute. If the problematic database remains unavailable, this cycle will repeat.
Error message: Exception of type System.OutOfMemoryException was thrown.
This issue may occur if one of the following conditions is true:
To work around this issue, use one of the following methods:
To map data, the Mapper in BizTalk Server 2004 passes a stream object that is loaded into an XPathDocument object. The XPathDocument object is processed by the XSLTransform class. To provide faster access to the data as the transformation process runs, the XPathDocument object stores information about the nodes of the XML together with the data itself. This behavior requires contiguous memory. Therefore, you experience a System.OutofMemoryException error when contiguous memory is unavailable or when the transformation process has consumed all available memory.
There is no specific file size threshold where the System.OutofMemoryException error occurs. We recommend that you fully test the following kinds of solutions before you deploy these solutions in a production environment:
The following scenarios may also cause System.OutofMemoryException errors:
For more information about the XPathDocument object, visit the following Microsoft Developer Network (MSDN) Web site:
Article ID: 913959 - Last Review: May 11, 2007 - Revision: 2.1