Sabby62
Sabby62

Reputation: 1717

Azure Blob Storage Out of Memory exception

I am using Azure Blob storage. Everything work fine, but sometime i get following error intermittently:

"$type": "System.Web.Http.HttpError, System.Web.Http",
"Message": "An error has occurred.",
"ExceptionMessage": "Exception of type 'System.OutOfMemoryException' was thrown.",
"ExceptionType": "System.OutOfMemoryException",
"StackTrace": "   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.get_Result()
   at Microsoft.WindowsAzure.StorageClient.Tasks.Task`1.ExecuteAndWait()
   at Microsoft.WindowsAzure.StorageClient.TaskImplHelper.ExecuteImplWithRetry(Func`1 impl, RetryPolicy policy)
   at Microsoft.WindowsAzure.StorageClient.CloudBlobContainer.SetPermissions(BlobContainerPermissions permissions, BlobRequestOptions options)

It's really hard to recreate the issue on my local. Any solutions ?

Upvotes: 0

Views: 5896

Answers (2)

Sabby62
Sabby62

Reputation: 1717

There was memory leak in the application with Windsor IOC not releasing object for GC. That was the root problem for this error.

Upvotes: 0

Michael Curd
Michael Curd

Reputation: 617

The following Stack Overflow thread might help C# : Out of Memory exception. To summarize, if you haven't already, try changing your platform target to x64 and see if that helps.

Upvotes: 1

Related Questions