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
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory #25643
Comments
Would you be able to provide a reproduction? 🙏 More infoWhy do I need to provide a reproduction?Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making. What will happen?If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect. If How can I create a reproduction?We have a couple of templates for starting with a minimal reproduction: 👉 https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz A public GitHub repository is also perfect. 👌 Please ensure that the reproduction is as minimal as possible. See more details in our guide. You might also find these other articles interesting and/or helpful: |
Seeing this too with 3.10+ |
Jesus christ. I'll share our stats then. We have semi-highload website with several replicas of Nuxt. All of them go to ~500-600MB of memory, which is even higher we were on Nuxt 2. On Staging we have no higher than 300MB, with medium at ~200-250MB. Nuxt 2 were more stable for me on memory. Sadly we went straight to Nuxt 3.10 (were upgrading) so I can't say if it was better. But at least this 600MB is stable. It doesn't go much higher. |
Our heavy spike was caused by asyncContext + timeout in useFetch/ofetch (unjs/ofetch#361, unjs/ofetch#369) |
Got the same issue but when generating the pages |
Let's track in #26798. |
Environment
Reproduction
I am using ddev with nginx to get ssl on local environment. (ddev npm run dev)
After 10-15 saves, when using the HMR with the Dev-Server I get this error:
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xb7f974 node::Abort() [/usr/bin/node]
2: 0xa97f08 [/usr/bin/node]
3: 0xd40e78 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
4: 0xd41048 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/usr/bin/node]
5: 0xf1f5fc [/usr/bin/node]
6: 0xf20264 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [/usr/bin/node]
7: 0xf307ac [/usr/bin/node]
8: 0xf31370 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [/usr/bin/node]
9: 0xf0d718 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
10: 0xf0e6f0 v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [/usr/bin/node]
11: 0xef1380 v8::internal::Factory::NewFillerObject(int, v8::internal::AllocationAlignment, v8::internal::AllocationType, v8::internal::AllocationOrigin) [/usr/bin/node]
12: 0x1297a34 v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
13: 0x167c4ec [/usr/bin/node]
Describe the bug
Running the dev-Server behind a reverse proxy (nginx) and using HMR crashes the development server after some saves (10-15).
Only fix is to restart the server.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: