+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Connection time-out while uploading images

Connection time-out while uploading images

11 posts, 0 answered
  1. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    18 Feb 2011
    Link to this post
    Hi,

    I'm facing a performance issue with the Images & Documents library in Sitefinity 3.7. I have an Image library which has approx 6500 images into it. Now when my client is trying to upload a zip file with approximately 25 images in it (max file size of the zip is around 20 MB), after reaching 93% the page times out.

    Is it due to the size of the library ? What can be the solution ? Please help as this is urgent.

    Thanks,
    Saumitra
  2. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    19 Feb 2011
    Link to this post
    Hi,

    Any updates on this? Its urgent...

    Thanks,
    Saumitra
  3. Flavio Cometto
    Flavio Cometto avatar
    14 posts
    Registered:
    17 Oct 2009
    21 Feb 2011
    Link to this post
    Hi Saumitra,
    did You try to increment page timeout? You could easily set at web.config level in system.web -> httpruntime section, modifying executionTimeout value. For instance:
    <system.web>
        <httpRuntime executionTimeout="3600" />

    In the example is set to 3600 seconds. Value depending on max upload size of file.
    Flavio

  4. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    21 Feb 2011
    Link to this post
    Hi Flavio,

    The connection time-out is already set to a large value. Here are my web.config settings:
    <system.web>
          <httpRuntime executionTimeout="9870000" maxRequestLength="274288" />

    I'm still getting the time-out. I strongly feel that it is something to do with the library size. Currently the library has some 6500 approx images.

    Saumitra
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    21 Feb 2011
    Link to this post
    Hello,

    Can you try to enable files provider and see whether the issue will persist?

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    24 Feb 2011
    Link to this post
    Hi,

    I tried with the Files provider and it worked. But this is not the solution that would work for us due to multple reasons:

    1. There are more than one webservers behind a load balancer and synchronisation may be an issue later.
    2. 30-40 photos get uploaded daily in the library. Which means that we would soon run out of disk space.

    We would still like to go with the database storage for the blob data. So please let me know if there is any optimisation technique that can be implemented to overcome this problem.

    Thanks,
    Saumitra
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    24 Feb 2011
    Link to this post
    Hello Saumitra,

    The database upload will require to increase the dedicated RAM for the database server. We made many test and the best option for Sitefinity 3.7 was implementing the Files provider. Using Nolics provider and uploading files that are about 100 MB will crash the server. Another option would be using Viddler and Amazon  S3 providers.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  8. Saumitra
    Saumitra avatar
    127 posts
    Registered:
    10 Mar 2009
    25 Feb 2011
    Link to this post
    Hi,

    If we decide to go with the files provider, I need to understand a few things:

    1. Can I transfer all the images that are currently in the database to the files folder in one go ?
    2. Tomorrow if I need to provision for space and if another hard disk is added to the server, will the files provider be able to take the advantage of the empty space on the extra disk automatically ?

    Thanks,
    Saumitra
  9. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    25 Feb 2011
    Link to this post
    Hi Flavio Cometto,

    1. Please take a look at stich to file system provider
    2. Files provider uses App_Data folder to store its data

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  10. Netfinity
    Netfinity avatar
    11 posts
    Registered:
    15 Nov 2006
    10 Aug 2011
    Link to this post
    Hi

    We are having the same issue with connection time-outs while uploading larger images on our busy web site. I notice that if I upload to our test web site which no one but us uses and is on a separate application pool I have no problem and I also notice that while uploading a large image that takes a few to several minutes that no other web request can be completed in the mean time until the image has finished uploading. This is a big problem and I wonder if this has something to do with the connection timeouts? I understand that the issue can be resolved by moving to the files provider. But this is also a problem as we have a lot of images in a lot of libraries that we would like to leave as is. Is there anyway to have the files provider used for only one library type. For example could I add and additional library type into the web.config and have only that library type use the files provider? Thanks.
  11. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    11 Aug 2011
    Link to this post
    Hello Netfinity,

    You can try setting the chunk size in the web.config, but generally this issue could be resolved only with the files provider.Most probably the SQL times out. The content items uploaded by Images and Documents module are stored to the database. You could try to increase the values of SQL SERVER memory - Minimum server memory and Maximum Server Memory.You can also increase the value of minimum memory per query ( 1024 KB should be enough).There is a leak of memory when you upload a large files because we create a stage binary content object which takes your SQL server memory. The server cannot handle the memory peak during the upload and this is why we introduced the Files provider and Streaming API . Uploading large files is not suitable for Nolics provider that works with the database.


    You could try the following options

    Option one: Enable the streaming for Nolics provider and then try to upload a file.

    <librariesdefaultGenericProvider="Libraries"streamingProviderName="Nolics"streamingIsEnabled="True"streamingChunkSize="20971520">


    This will set your website to upload files on chunk of maximum 20 MB. If you want you can decrease the value of streamingChunkSize to 10 or 5 MB

    Option two: If the option one does not help ( I hope that option 1 will resolve your issue) you should use the Files provider. You might also find this post useful - Switching from database to filesysystem for files.


    Regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
11 posts, 0 answered