Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Mark 120 posts 253 karma points
    Mar 23, 2017 @ 10:06

    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..


  • Alex Lindgren 158 posts 355 karma points
    Mar 23, 2017 @ 13:39
    Alex Lindgren

    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.

  • Dirk Seefeld 122 posts 639 karma points
    Mar 23, 2017 @ 13:41
    Dirk Seefeld

    Hi Mark, I did some quick research and found

    Especially first comment might give the answer:

    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


  • Mark 120 posts 253 karma points
    Mar 31, 2017 @ 08:14

    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.


Please Sign in or register to post replies

Write your reply to: