Skip to content

Commit f22ba88

Browse files
Default stack size (#35103)
* Default stack size * Default stack size * Default stack size * Default stack size
1 parent 61c4e81 commit f22ba88

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

aspnetcore/host-and-deploy/iis/advanced.md

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ This article covers advanced configuration options and scenarios for the ASP.NET
1818

1919
*Only applies when using the in-process hosting model.*
2020

21-
:::moniker range="> aspnetcore-9.0"
22-
Configure the managed stack size using the `stackSize` setting in bytes in hexadecimal in the `web.config` file. The default size is 1,048,576 bytes (1 MB) expressed in hexadecimal. The following example changes the stack size to 2 MB (2,097,152 bytes) in hexadecimal 0x200000:
21+
Configure the managed stack size using the `stackSize` setting in hexadecimal bytes in the `web.config` file. The default size is 0x100000 bytes (1 MB). The following example changes the stack size to 2 MB (2,097,152 bytes) in hexadecimal 0x200000:
2322

2423
```xml
2524
<aspNetCore processPath="dotnet"
@@ -33,26 +32,6 @@ Configure the managed stack size using the `stackSize` setting in bytes in hexad
3332
</aspNetCore>
3433
```
3534

36-
:::moniker-end
37-
38-
:::moniker range="<= aspnetcore-9.0"
39-
40-
Configure the managed stack size using the `stackSize` setting in bytes in the `web.config` file. The default size is 17,825,792 bytes (17 MB). The following example changes the stack size to 100,000 hex, (1 MB):
41-
42-
```xml
43-
<aspNetCore processPath="dotnet"
44-
arguments=".\MyApp.dll"
45-
stdoutLogEnabled="false"
46-
stdoutLogFile="\\?\%home%\LogFiles\stdout"
47-
hostingModel="inprocess">
48-
<handlerSettings>
49-
<handlerSetting name="stackSize" value="100000" />
50-
</handlerSettings>
51-
</aspNetCore>
52-
```
53-
54-
:::moniker-end
55-
5635
## Disallow rotation on config
5736

5837
The `disallowRotationOnConfigChange` setting is intended for blue/green scenarios where a change to global config should not cause all sites to recycle. When this flag is true, only changes relevant to the site itself will cause it to recycle. For example, a site recycles if its *web.config* changes or something changes that is relevant to the site's path from IIS's perspective. But a general change to *applicationHost.config* would not cause an app to recycle. The following example sets this setting to true:

0 commit comments

Comments
 (0)