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

this plugin uses too much memory #39

Open
futugyou opened this issue Mar 11, 2024 · 4 comments
Open

this plugin uses too much memory #39

futugyou opened this issue Mar 11, 2024 · 4 comments

Comments

@futugyou
Copy link

when i add this plugin to my project, and run 'npm run build', it used more than 2g of memory and finally threw the error - ‘JavaScript heap out of memory’.

`F:\program\react-backservice-typescript>npm run build

my-react-app@1.0.0 build
tsc && vite build

production
vite v5.1.5 building for production...
✓ 6685 modules transformed.

<--- Last few GCs --->

[8768:00000000075FC610] 133378 ms: Mark-sweep (reduce) 1981.9 (2031.5) -> 1981.7 (2031.8) MB, 1930.1 / 0.0 ms (average mu = 0.195, current mu = 0.003) allocation failure; scavenge might not succeed
[8768:00000000075FC610] 135314 ms: Mark-sweep (reduce) 1982.7 (2031.8) -> 1982.6 (2032.8) MB, 1934.8 / 0.0 ms (average mu = 0.102, current mu = 0.001) allocation failure; scavenge might not succeed

<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
1: 00000001402507BF node_api_throw_syntax_error+175823
2: 00000001401D5796 EVP_MD_meth_get_input_blocksize+59654
3: 00000001401D7480 EVP_MD_meth_get_input_blocksize+67056
4: 0000000140C7DCC4 v8::Isolate::ReportExternalAllocationLimitReached+116
5: 0000000140C69052 v8::Isolate::Exit+674
6: 0000000140AEAF0C v8::internal::EmbedderStackStateScope::ExplicitScopeForTesting+124
7: 0000000140AE812B v8::internal::Heap::CollectGarbage+3963
8: 0000000140AFE363 v8::internal::HeapAllocator::AllocateRawWithLightRetrySlowPath+2099
9: 0000000140AFEC0D v8::internal::HeapAllocator::AllocateRawWithRetryOrFailSlowPath+93
10: 0000000140B0E3D0 v8::internal::Factory::NewFillerObject+816
11: 00000001407FF315 v8::internal::DateCache::Weekday+1349
12: 0000000140D1B1F1 v8::internal::SetupIsolateDelegate::SetupHeap+558193
13: 0000000140CCCC65 v8::internal::SetupIsolateDelegate::SetupHeap+237285
14: 00000000C11DBB94`

@Shunjun
Copy link

Shunjun commented May 13, 2024

I have the same issue

@RonnyLin
Copy link

i have the same too

@cwdx
Copy link

cwdx commented Aug 28, 2024

Same issue here

@geekdiv
Copy link

geekdiv commented Sep 19, 2024

I have similar issue. I am using latest version 0.5.0 any one find the solution ?

<--- Last few GCs --->

[8084:000001C67E42C100]    92722 ms: Mark-sweep 3983.8 (4136.7) -> 3982.2 (4136.0) MB, 1318.5 / 0.0 ms  (average mu = 0.641, current m
u = 0.115) allocation failure scavenge might not succeed
[8084:000001C67E42C100]    95075 ms: Mark-sweep 3997.9 (4136.0) -> 3996.7 (4165.2) MB, 2349.9 / 0.0 ms  (average mu = 0.342, current m
u = 0.001) allocation failure scavenge might not succeed


<--- JS stacktrace --->

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
 1: 00007FF6B0D3815F v8::internal::CodeObjectRegistry::~CodeObjectRegistry+114079
 2: 00007FF6B0CC54C6 DSA_meth_get_flags+65542
 3: 00007FF6B0CC637D node::OnFatalError+301
 4: 00007FF6B15FBA0E v8::Isolate::ReportExternalAllocationLimitReached+94
 5: 00007FF6B15E5FED v8::SharedArrayBuffer::Externalize+781
 6: 00007FF6B14893BC v8::internal::Heap::EphemeronKeyWriteBarrierFromCode+1468
 7: 00007FF6B14864D4 v8::internal::Heap::CollectGarbage+4244
 8: 00007FF6B1483E50 v8::internal::Heap::AllocateExternalBackingStore+2000
 9: 00007FF6B14A89D6 v8::internal::Factory::NewFillerObject+214
10: 00007FF6B11DAEA5 v8::internal::DateCache::Weekday+1797
11: 00007FF6B1689701 v8::internal::SetupIsolateDelegate::SetupHeap+494417
12: 000001C600B08193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants