"Microsoft.WindowsAzure.Storage.StorageException: Exception of type 'System.OutOfMemoryException' was thrown."
when uploading relatively large video files (~260Mb) to blob storage using this provider.
I can solve the issue by increasing the App Service instance size to S2 (3Gb ram), but that is quite costly when the only thing pushing it to that size of instance is currently the video uploads.
Is there a configuration change I can make to prevent this requirement? Has anyone else had this issue and found a way around it without throwing money/resources at the problem?
I think the problem is that HTTP posts files and ASP.NET loads file uploads into memory, so between the OS, the web app and the file, 3GB of RAM sounds about right for that. For non-Umbraco projects, I've used some other mechanisms to make large file uploads work with less memory - I think there is a flash widget that streams the data up to a web service. Not sure if that is doable with Umbraco -- probably with some work. Personally, I always recommend using a video hosting service (Brightcove, YouTube, Vimeo) for videos because they solve this and other problems.
yep. Scale the Azure Web Apps tier. I assume you use Free or Shared,
which both have memory limits - 1024 MB per hour. Which is calculated
as Peak memory use. If your app reaches 1024MB memory usage, your site
will be suspended and you will also get an Out-of-memory exception. –
astaykov Jul 14 '15 at 18:33
Thanks for the feedback guys, indeed the general consensus is that upscaling is the only answer so will have to stick with that. Not really an issue, but good to know either way.
Uploading large files throws error
I am getting the following error:
"Microsoft.WindowsAzure.Storage.StorageException: Exception of type 'System.OutOfMemoryException' was thrown."
when uploading relatively large video files (~260Mb) to blob storage using this provider.
I can solve the issue by increasing the App Service instance size to S2 (3Gb ram), but that is quite costly when the only thing pushing it to that size of instance is currently the video uploads.
Is there a configuration change I can make to prevent this requirement? Has anyone else had this issue and found a way around it without throwing money/resources at the problem?
Any thoughts would be appreciated..
Mark
I think the problem is that HTTP posts files and ASP.NET loads file uploads into memory, so between the OS, the web app and the file, 3GB of RAM sounds about right for that. For non-Umbraco projects, I've used some other mechanisms to make large file uploads work with less memory - I think there is a flash widget that streams the data up to a web service. Not sure if that is doable with Umbraco -- probably with some work. Personally, I always recommend using a video hosting service (Brightcove, YouTube, Vimeo) for videos because they solve this and other problems.
Hi Mark, I did some quick research and found http://stackoverflow.com/questions/31414450/azure-blob-storage-out-of-memory-exception
Especially first comment might give the answer:
Dirk
Thanks for the feedback guys, indeed the general consensus is that upscaling is the only answer so will have to stick with that. Not really an issue, but good to know either way.
Mark
is working on a reply...