Skip to content
This repository was archived by the owner on Apr 22, 2023. It is now read-only.
This repository was archived by the owner on Apr 22, 2023. It is now read-only.

(cluster) --debug-port is forced #8159

Closed
@soyuka

Description

@soyuka

Hi,

https://github.com/joyent/node/blob/master/lib/cluster.js#L291

    if (!hasDebugArg)
      execArgv = ['--debug-port=' + debugPort].concat(execArgv);

Why is debugging forced in the cluster module? Is it a wanted behavior? Did someone forgot to remove it?

It's breaking some code of ours (Unitech/pm2#610 (comment)) and leading to a memory leak:

  • restart a cluster a lot
  • debug port is going crazy and breaks node and the V8 engine

May I PR on this to remove those debug forcing stuff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions