Copied to clipboard

Flag this post as spam?

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


  • Mark 116 posts 248 karma points
    Mar 23, 2017 @ 10:06
    Mark
    0

    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

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

    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 622 karma points
    Mar 23, 2017 @ 13:41
    Dirk Seefeld
    0

    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:

    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

    Dirk

  • Mark 116 posts 248 karma points
    Mar 31, 2017 @ 08:14
    Mark
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft