Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting uploadReadAheadSize in IIS 8.5

I'm trying to use the following command to set uploadReadAheadSize in IIS 8.5 on Windows Server 2012 R2:

appcmd.exe set config -section:system.webServer/serverRuntime/uploadReadAheadSize:"491521"  /commit:apphost

But I keep getting this error:

ERROR ( message:Can not set attribute "uploadReadAheadSize" to value "491521 ".. 
Reason: Not a valid unsigned integer . )

From this page the maximum should be 4GB so my integer is valid. (Admittedly this goes back to IIS 6.0 so not sure how relevant it is now.)

This page on the other hand suggests that the property may have been replaced/deprecated or something, but it's not clear from the error message or anything I can find on the Googles.

I'm no expert in IIS so there may be a simple/obvious answer to this, but I'd be grateful if anyone can share some more concrete info...

UPDATE: also posted in IIS forums

like image 466
Jon.Mozley Avatar asked Mar 06 '14 16:03

Jon.Mozley


People also ask

What is UploadReadAheadSize in IIS?

The UploadReadAheadSize property establishes the number of bytes a Web server will read into a buffer and pass to an ISAPI extension. This occurs once per client request. The ISAPI extension receives any additional data directly from the client.

Where is UploadReadAheadSize set?

Under the Management section, double-click Configuration Editor. In the Section dropdown, select system. webServer > serverRuntime. Increase the uploadReadAheadSize value and click Apply in the Actions section.

How do I change appConcurrentRequestLimit?

Open IIS Manager and on the server node, under Management, select the Configuration Editor. Then navigate to system. webServer and select serverRuntime. Then change the appConcurrentRequestLimit field to a higher value.

What is server run time?

Runtime servers are the workhorses of your Interact implementation. The runtime servers listen and respond to requests from the touchpoint through the Interact API. When your touchpoint requests an offer, it is the runtime server that responds with the offer. Interact works with server groups.


3 Answers

  • Open IIS
  • Navigate under Default Web Site
  • Scroll down to Management and open Configuration Editor
  • Select following section (drop down at the top) system.webServer and expand it, then locate serverRuntime
  • you'll find there the current value of uploadReadAheadSize value, which you can change
like image 108
AlexB Avatar answered Sep 16 '22 17:09

AlexB


Four years later... The clue was in the error message: "491521 " is not a valid unsigned integer. Note the space at the end of the integer before the quote marks.

Turns out the command I was running had a double space between the value and the /commit. Change to a single space and the command works fine.

Interestingly it's the same command I've been using for years and I've just confirmed it still works fine with the double space in Server 2008 R2!

like image 30
Jon.Mozley Avatar answered Sep 18 '22 17:09

Jon.Mozley


How to set the maxAllowedContentLength to 500MB while running on IIS7?

Try this. Looks like you need to set it below 4294967295(in bytes)

like image 34
Vikrant Rao Avatar answered Sep 19 '22 17:09

Vikrant Rao