You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keep the site running for longer time under some traffic
Watch the memory grows indefinitely until the app crashes
Current vs. Expected behavior
There's some kind of memory leak when the optimizeCss (Critters) is enabled. The memory usage grows linearly to traffic and is not freed, if the pages are SSG. This eventually results in the app crash.
Verify canary release
I verified that the issue exists in the latest Next.js canary release
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/old-currying-xtd57t
To Reproduce
optimizeCss
Current vs. Expected behavior
There's some kind of memory leak when the
optimizeCss
(Critters) is enabled. The memory usage grows linearly to traffic and is not freed, if the pages are SSG. This eventually results in the app crash.Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 22.6.0: Wed Jul 5 22:22:05 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T6000 Binaries: Node: 16.18.1 npm: 8.19.2 Yarn: N/A pnpm: N/A Relevant Packages: next: 13.5.6 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: N/A Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next start (local), Other (Deployed)
Additional context
Memory usage graph of our app:
![Zrzut ekranu 2024-01-8 o 15 07 53](https://private-user-images.githubusercontent.com/1322846/295583866-2dac1a57-8066-4966-bcce-423d4d0b0e6b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk1ODMyNTcsIm5iZiI6MTczOTU4Mjk1NywicGF0aCI6Ii8xMzIyODQ2LzI5NTU4Mzg2Ni0yZGFjMWE1Ny04MDY2LTQ5NjYtYmNjZS00MjNkNGQwYjBlNmIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTVUMDEyOTE3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZjU0NzM2NTViN2UwODNmOGVhNjY1ZjUzNDI3MWE2ODU4MmI1ZGI2YWFjNWNiMzVhNGY2YThmYzhkOWJlMTQ3YSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Oe5udRvstdw-j3EWOzRBJrdxfjypgeu7wVnPUKpdxjY)
The drops are manual restarts to keep the app running. The moment it finally stabilizes is when we disabled
optimizeCss
.The text was updated successfully, but these errors were encountered: