Skip to content

[Connector] Network monitoring process leak & throttle instance accumulation #407

@Flegma

Description

@Flegma

Summary

Background processes and throttle instances accumulate without cleanup.

Findings

  • network.service.ts — each NIC spawns 2 bash processes running indefinitely. Only killed on SIGTERM. Reinitializations orphan previous processes.
  • throttle.ts — global throttlers Map accumulates instances with setInterval forever. Never cleaned up.

Impact

Zombie bash processes accumulate. Memory/CPU consumed by stale throttle intervals.

Suggested Fix

Store process references and kill before creating new. Use Node.js fs.read instead of bash. Add LRU/TTL for throttler cleanup.


Related Issues (Memory Leak Pattern)

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1-highStability & reliabilityaudit-2026-03From March 2026 codebase auditresource-leakResource or connection leakservice:connector5stackgg/game-server-node-connector service

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions