Skip to content

Compiler OOM in watch mode and with --d #21140

Closed
@aldendaniels

Description

@aldendaniels

Process is running out out of memory on TS 2.6.2 in watch mode.

To reproduce:

  1. Run tsc --noemit --watch --project .
  2. Edit a file

The process hangs for a minute or so, then crashes with a node out-of-memory exception.

This does not appear to be related to strict generic checks (see #19662), as the exception still occurs when running tsc --noemit --watch --noStrictGenerics --project . (presuming that the --noStrictGenerics flag overrides the .tsconfig).

This is possibly a dup of #19253. It's a large project (2700+ files) and we're hitting performances challenges generally so project size is likely a factor. I can't share the project as the code is proprietary, but would be happy to jump on a screen share to further diagnose if that would be helpful.

cc: @mhegazy

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions