This is a migrated thread and some comments may be shown as answers.

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

1 Answer 71 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 21 Nov 2014, 01:07 AM
Hi,

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:

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

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,
dana










1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 26 Nov 2014, 08:35 AM
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).

Regards,
Peter Filipov
Telerik
 

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.

 
Tags
Upload (Obsolete)
Asked by
Mike
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or