System.OutOfMemoryException while copying data from Amzon S3 to Azure Blob.

Vinay5 46 Reputation points
2021-04-08T07:08:57.743+00:00

Hi team,

I am getting below error while copying data from Amazon S3 to Azure Blob. The source is XML file and it is zipped and I want to copy the file without unzipping to the target.
The size of the file when zipped is 77MB. I am trying to write it to an Json file in the target.
The integration run time is self hosted and the Max concurrent connection ,DIU is set as Default. I was able to copy smaller files with the same setting.

Failure happened on 'Sink' side. ErrorCode=SystemErrorOutOfMemory,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The available memory of the Integrated Runtime (self-hosted) is too small, please increase your machine memory.,Source=Microsoft.DataTransfer.TransferTask,''Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A task failed with out of memory.,Source=,''Type=System.OutOfMemoryException,Message=Exception of type 'System.OutOfMemoryException' was thrown.,Source=mscorlib,'
Source

Could you please let me know a work around to resolve this issue.

I have one more doubt. If my source from Amazon S3 is XML, can I save this file as XML in my target Azure blob by using copy activity?
I tried to use a XML sink data set ,but it is only accepting Json as target sink while copying XML source from S3

Thank you.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,827 questions
0 comments No comments
{count} votes

Accepted answer
  1. KranthiPakala-MSFT 46,512 Reputation points Microsoft Employee
    2021-04-09T23:42:49.577+00:00

    Hi @Vinay5 ,

    Thanks for reaching out. From the error message it is clear that the available memory is less on the SHIR hosted machine when this run was in process.

    When you encounter such issues, below are few recommendations:

    Hope this info helps. Do let us know if you have further query.


    Please don’t forget to Accept Answer and Up-Vote wherever the information provided helps you, this can be beneficial to other community members.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.