Worker count does not increase when uploading large file.

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 1
Joined: 12 Dec 2012, 17:40

Worker count does not increase when uploading large file.

12 Dec 2012, 18:05

Hi,

Hi the problem i have is that a Django app becomes unresponsive (requests timeout) while uploading large file.
I tested with 80-200mb files and noticed that other users can't connect to the web site while the file is being uploaded. I have a default setup without any minInstances/maxInstances parameters added/modified.

I know that i can add a parameter minInstances="10" and then 10 users will be able to upload a file at the same time but what if there will be more users? Will i have manually update config each time i notice an increased load? Another problem is that each instance of python allocates about 30MB of RAM so having 10 instances will require 300MB of RAM which is a waste of resources IMO.

Did i miss something? Can/should workers be created automatically and serve the requests instead of time-outing them?

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Worker count does not increase when uploading large file

13 Dec 2012, 06:44

Hello,

We want to suggest you an alternative way which in fact is a better one.
You don't need to have multiple instances, so revert it to 1.
In web.config for your site add the following env variable:

<environmentVariables>
<add name="POST_CACHE_DIR" value="%APPL_PHYSICAL_PATH%\POST_TEMP" />
...

where POST_TEMP is a folder you need to create under your site and give Write permissions.

This is a proper way to deal with slow posting which you are suffering from. Please try it.

User avatar
Posts: 27
Joined: 04 Dec 2012, 21:06

Re: Worker count does not increase when uploading large file

16 Dec 2012, 23:17

This is a great alternative. Thanks a lot.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 15 guests