8000 GenerateDepsFile allocates 25GB of heap on large project · Issue #48814 · dotnet/sdk · GitHub
[go: up one dir, main page]

Skip to content
GenerateDepsFile allocates 25GB of heap on large project #48814
@pavelsavara

Description

@pavelsavara

When building dotnet runtime on CI, we run OOM on WASM legs.

Top offenders are

  • GenerateDepsFile is at 25GB over 1056 runs on the same build. 😮
  • ValidateAssembliesTask 0.5GB over 59 runs
  • ResolveRuntimePackAssets 0.4GB over 451 runs

The issue was identified by using new MSBuild telemetry

It would be good to fix the root cause (memory consumption) in those Tasks.
I believe that customers with large solutions could suffer with the same problems.

Workaround

We applied workaround to run those tasks out-of-process for WASM leg.

See https://github.com/dotnet/runtime/blob/43955cb086eb88dbe78f1764c21dd3362a2427ee/src/mono/browser/build/WasmApp.InTree.CI.targets#L3-L5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0