File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/WebJobs.Script.WebHost/Middleware Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 12
12
- Fixing invalid DateTimes in status blobs when invoking via portal (#10916 )
13
13
- Bug fix for platform release channel bundles resolution casing issue and additional logging (#10921 )
14
14
- Adding support for faas.invoke_duration metric and other spec related updates (#10929 )
15
+ - Increased the GC allocation budget value to improve cold start (#10953 )
15
16
- Fixed bug that could result in "Binding names must be unique" error (#10938 )
Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ namespace Microsoft.Azure.WebJobs.Script.WebHost.Middleware
12
12
/// <summary>
13
13
/// A middleware responsible for Optimizing CLR settings like GC to help with cold start
14
14
/// </summary>
15
- internal class ClrOptimizationMiddleware
15
+ internal sealed class ClrOptimizationMiddleware
16
16
{
17
- // This is double the amount of memory allocated during cold start specialization.
18
17
// This value is calculated based on prod profiles across all languages observed for an extended period of time.
19
18
// This value is just a best effort and if for any reason CLR needs to allocate more memory then it will ignore this value.
20
- private const long AllocationBudgetForGCDuringSpecialization = 16 * 1024 * 1024 ;
19
+ private const long AllocationBudgetForGCDuringSpecialization = 24 * 1024 * 1024 ;
21
20
private readonly ILogger _logger ;
22
21
private readonly RequestDelegate _next ;
23
22
private readonly IScriptWebHostEnvironment _webHostEnvironment ;
You can’t perform that action at this time.
0 commit comments