Inhalte aufrufen

Profilbild

Large file upload - out of memory

upload memory

3 Antworten zu diesem Thema

#1 inbanco

inbanco

    Member

  • Members
  • 14 Beiträge

Geschrieben: 02 February 2016 - 07:23

My store has a large digital product (a zip file) that's 650MB.

 

I can't upload it to the server. I've increased the allowed sizes in the web.config and in the backend of SmartStore but it just hangs at 100%.

 

I also did the upload locally on my machine and got :

Exception of type 'System.OutOfMemoryException' was thrown.

Source File: C:\_Dev_\bigbox\SmartStoreNET-2.x\src\Libraries\SmartStore.Core\Extensions\ConversionExtensions.cs    Line: 225
 

Can someone point out what i can do about this please?

 

Thanks

Nick



#2 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3221 Beiträge

Geschrieben: 02 February 2016 - 11:25

The binary data of the upload is stored in the database and therefore it is converted into a byte array. Your shop has not enough memory to process such a large file. There is an option to enter an URL for downloading rather than uploading the file (see image). I would use that for large files. Giving more memory to the shop to pass this hurdle would be another solution. Maybe the file size could be reduced by increasing the compression of the archive.

 

Angehängte Bilder

  • dowload-via-url.png

Schöne Grüße aus Düsseldorf,
Marcus Gesing


#3 inbanco

inbanco

    Member

  • Members
  • 14 Beiträge

Geschrieben: 03 February 2016 - 00:24

Thanks Marcus for your reply.

 

When you say

 

Your shop has not enough memory to process such a large file.

 

Do you mean the server doesn't have enough spare memory to allow the upload to server memory?

I could just bump up the ram in the server if this is the case. Then i can lower it again. It's a EC2 VM



#4 Marcus Gesing

Marcus Gesing

    SmartStore AG

  • Administrators
  • 3221 Beiträge

Geschrieben: 03 February 2016 - 10:50

Yes, the shop gets not enough RAM to process such a large file.


Schöne Grüße aus Düsseldorf,
Marcus Gesing




Auf dieses Thema antworten



  

Auch markiert mit einem oder mehrerer dieser Schlüsselwörter: upload, memory