Skip to content

Frequent rerendering fills up the GC Nursery #21452

@b-straub

Description

@b-straub

Describe the bug

When a Webassembly page renders with high frequency the GC nursery section fills up rapidly and starts writing warnings to the console.

To Reproduce

Add the ticker test page
Ticker

Change the update speed to a high frequency
await Task.Delay(TimeSpan.FromMilliseconds(2));

The Debug console will start emitting GC warnings
L: GC_MINOR: (Nursery full) time 2.35ms, stw 2.37ms promoted 162K major size: 992K in use: 269K los size: 1024K in use: 16K
….

Further technical details

  • ASP.NET Core version
    Microsoft.AspNetCore.Components.WebAssembly 3.2.0-rc1.20223.4`
  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version
    Microsoft Visual Studio Community 2019 Preview Version 16.6.0 Preview 5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    ✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions