Skip to content

SBG may fail when parsing big JS files #1430

@vmutafov

Description

@vmutafov

If there are many big JS files to be parsed by the JS parser in the SBG, it may fail with V8 Out-of-Memory exception. This happens rarely but, still, there might be a problem with the default webpack flow.

The JS parser in the SBG is ran as a Node process and if it is not started with a max heap size flag it uses V8's default heap size which is around 1.7gb.

We should start the Node process with a bigger available amount of memory but still allow users to provide the NODE_OPTIONS environment variable to manually change the Node configs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions