RadUpload taking up lot of memory in IIS7.5 integrated mode

Thread is closed for posting
2 posts, 0 answers
  1. Mike
    Mike avatar
    2 posts
    Member since:
    Sep 2013

    Posted 20 Nov 2014 Link to this post


    I have a website on DNN 6.2.6 and telerik version 2013.2.717.40. We very recently moved the website to windows 2008 R2 (IIS7.5) from IIS6 on windows 2003 server. We are currently running the application pool in integrated mode in .net 4.0 with 32 bit enabled.  We are seeing huge spike in the memory whenever we are loading huge files using RadUpload control. We allow files upto 2GB to be uploaded, with 1.5GB file we are getting OutofMemoryExceptions. I monitored the memory usage, the instant I click submit button on my page, the memory is spiked by the approximately same size as the file I am uploading, this is happening even before the file barely started uploading. I understand that the RadUpload is replaced with RadAsyncUpload, this module is built 4 years ago and in the future we will move to that control but we need the issue to be resolved with RadUpload until we do so. 

    I read through the http://www.telerik.com/help/aspnet-ajax/upload-getting-started.html and added the changes to web.config:

    . . .
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" preCondition="integratedMode"/>
    . . .
    <add name="Telerik_RadUploadProgressHandler_ashx" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.Upload.RadUploadProgressHandler, Telerik.Web.UI" preCondition="integratedMode"/>

    In the modules section preCondition used to be mangedHandler and I changed it to integratedMode. The way the upload is being used is as follows:   

    <telerik:RadUpload ID="_newFileFileUpload" runat="server" OnClientFileSelected="CheckIfZip" MaxFileInputsCount="1"
                        ControlObjectsVisibility="None" Width="300px" />

    Any idea why the issue is happening.

    Thank you,

  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 26 Nov 2014 Link to this post

    Hi Mike,

    The RadUpload control uses the standard input type='file' element and the upload is handled by the ASP.NET framework. We only find the uploaded file from the submitted form and provide an API layer over it. When a file is uploaded it is stored and handled by the framework, a process which is black box for us. To overcome this problem you should send the file on chunks which the RadAsyncUpload does(2MB each).

    Peter Filipov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  3. DevCraft R3 2016 release webinar banner
Back to Top