web-infra-dev / rspack

The fast Rust-based web bundler with webpack-compatible API 🦀️
https://rspack.dev
MIT License
10.04k stars 573 forks source link

[Bug]: Rsbuild appears to have a memory leak after multiple rebuilds #8499

Open shiqimei opened 6 days ago

shiqimei commented 6 days ago

Version

System:
    OS: Linux 6.8 Ubuntu 24.04.1 LTS 24.04.1 LTS (Noble Numbat)
    CPU: (4) arm64 unknown
    Memory: 29.03 GB / 30.76 GB
    Container: Yes
    Shell: 5.9 - /usr/bin/zsh

Details

Image

Reproduce link

noop

Reproduce Steps

  1. run pnpm dev
  2. start development server for days, and then we will find the memory used by rsbuild get accumulated
maxyasoon commented 3 days ago

For me the memory usage also increased massively since 1.0.17. Maybe it is related.

alessandro308 commented 4 hours ago

We experience it on MacOS M1 too.