Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak with threads enabled #1135

Open
6 tasks done
JonasKruckenberg opened this issue Apr 10, 2022 · 2 comments
Open
6 tasks done

Memory Leak with threads enabled #1135

JonasKruckenberg opened this issue Apr 10, 2022 · 2 comments
Labels
help wanted Extra attention is needed p3-minor-bug An edge case that only affects very specific usage (priority)

Comments

@JonasKruckenberg
Copy link

Describe the bug

When setting threads: true (the default) a full rebuild (as happens when you press ctrl+s in the config file) leaks memory. The amount of memory is proportional to the amount of test files/source files present.

Reproduction

Here is a minimal reproduction that uses a very large snapshot to inflate memory usage.

  1. Run vitest and make sure to have threads enabled
  2. Navigate to the vite.config.ts file and press ctrl+s many times
  3. See the memory usage of the node process increase

System Info

System:
    OS: macOS 12.4
    CPU: (8) arm64 Apple M1
    Memory: 1023.63 MB / 8.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.14.2 - ~/Library/Caches/fnm_multishells/73424_1648464793541/bin/node
    Yarn: 3.0.1 - ~/.yarn/bin/yarn
    npm: 8.5.0 - ~/Library/Caches/fnm_multishells/73424_1648464793541/bin/npm
  npmPackages:
    vite: ^2.8.6 => 2.8.6 
    vitest: ^0.6.0 => 0.6.0

Used Package Manager

yarn

Validations

@vrslev
Copy link

vrslev commented May 19, 2022

I experience the exact same issue.

@sheremet-va sheremet-va added bug help wanted Extra attention is needed labels Mar 24, 2023
@HashemKhalifa
Copy link

any updates regarding this issue?

@sheremet-va sheremet-va added p3-minor-bug An edge case that only affects very specific usage (priority) and removed bug labels Feb 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed p3-minor-bug An edge case that only affects very specific usage (priority)
Projects
Status: Low Priority
Development

No branches or pull requests

4 participants