Skip to content

Memory leak with empty projectΒ #30164

Open
@TimGonnet

Description

@TimGonnet

Environment


  • Operating System: Linux
  • Node Version: v20.15.0
  • Nuxt Version: 3.14.1592
  • CLI Version: 3.16.0
  • Nitro Version: 2.10.4
  • Package Manager: pnpm@9.11.0
  • Builder: -
  • User Config: default
  • Runtime Modules: -
  • Build Modules: -

(tested with node v20.18.1 too)

Reproduction

  1. Initialize fresh nuxt project:

npx nuxi@latest init project

  1. Build and launch with --inspect:

pnpm i && pnpm build && node --expose-gc --inspect .output/server/index.mjs

  1. Launch chrome inspect on chrome://inspect

  2. Launch 10000 request with ab:

ab -n 10000 -c 100 -k http://localhost:3000/

  1. Garbage collector and take a snapshot 1

  2. Relaunch 10000 request with ab:

ab -n 10000 -c 100 -k http://localhost:3000/

  1. Garbage collector and take a snapshot 2

  2. Compare snapshot

Describe the bug

Image
Image

I see multiple object (maybe generated by unhead ?) that are still present between snapshot 1 and 2

Additional context

Maybe cause by #281, but i'm not sure

Logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions