[Bug]: Dev Server takes much more RAM with persistent cache
System Info
System: OS: macOS 15.6 CPU: (12) arm64 Apple M2 Pro Memory: 266.59 MB / 32.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.12.0 - ~/.nvm/versions/node/v22.12.0/bin/node Yarn: 4.1.0 - /opt/homebrew/bin/yarn npm: 10.9.0 - ~/.nvm/versions/node/v22.12.0/bin/npm bun: 1.2.9 - ~/.bun/bin/bun Browsers: Chrome: 139.0.7258.140 Safari: 18.6 npmPackages: @rspack/cli: 1.4.10 => 1.5.0 @rspack/core: 1.4.10 => 1.5.0 @rspack/dev-server: 1.1.3 => 1.1.4 @rspack/plugin-react-refresh: 1.4.3 => 1.4.3
Details
Is this expected that the dev server takes on much more memory with persistent cache enabled? I am looking into the experiments that are beneficial for us to enable and noticed that the RAM consumption is very significant (10.5Gb vs 13Gb) for our application.
experiments: {
cache: {
type: 'persistent',
},
...
},
I do not have a link to reproduce, because it's our internal codebase, but if you have a hint where to look, I can do some debugging.
Reproduce link
n/a
Reproduce Steps
I am just comparing the dev server runs with and without cache: { type: 'persistent', }, nothing more