Out of memory exception - pushing 2 lakhs record to AMAZON

Dec 26 2013 6:55 AM
Hi Folks,

PFA.

I have a task to push 2 lakhs records to AMAZON storage.

I have no problem when I push the record one by one to Amazon storage.

To speed up the process, have wrote threading code to push multiple record parallel.

I have created 2 thread & run the window app, after pushing 4 records its throw an "Out of memory exception". 

In the code;
1) I kept the 2 lakhs records in List collection.
2) Pass 1 lakh record to each thread.
3) PFA


Its throw an exception when it reach the below line
documentInfoList = documentClient.GetDocumentsInfo(applicationId, arrayOfFileName);

Line No 247 on FileUpload.cs class.


Kindly help me.
Thnaks & Regards,
Murugan Krishnan

Answers (2)