473 ms: Scavenge allocation failure

dev3
dev3
0 Points
0 Posts

I'm getting following error on yarn serve:

   Command failed: go list -m -json
  
   <--- Last few GCs --->
  
   [78852:000002335B1E0080]      473 ms: Scavenge 12.7 (17.4) -> 10.3 (18.7) MB, 1.45 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure;
   [78852:000002335B1E0080]      557 ms: Scavenge 14.2 (18.7) -> 11.4 (26.9) MB, 2.90 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure;
   [78852:000002335B1E0080]      707 ms: Scavenge 20.1 (28.4) -> 14.2 (29.4) MB, 1.51 / 0.00 ms  (average mu = 1.000, current mu = 1.000) allocation failure;

   <--- JS stacktrace --->

   FATAL ERROR: NewSpace::EnsureCurrentCapacity Allocation failed - JavaScript heap out of memory
    1: 00007FF68C2E436F
    2: 00007FF68C25C686
    3: 00007FF68C25E471
    4: 00007FF68CCCB281
    5: 00007FF68CCB4A18
    7: 00007FF68CAEF580
    8: 00007FF68CB1CCEA
    9: 00007FF68CB1F7AC
   10: 00007FF68CB12DC0
   11: 00007FF68CB1AA4A
   12: 00007FF68CB6C5DE
   13: 00007FF68C7F9166
   14: 00007FF68CD7C84E
Views: 114
Total Answered: 2
Total Marked As Answer: 0
Posted On: 11-Jan-2024 00:45

Share:   fb twitter linkedin
Answers
dev3
dev3
0 Points
0 Posts
         

Found something here to increase memory but it's not working:

https://github.com/Polymer/pwa-starter-kit/issues/292

$ export NODE_OPTIONS=--max_old_space_size=4096
$ npm run build:static
Posted On: 11-Jan-2024 00:47
Smith
Smith
None
2568 Points
74 Posts
         

For windows try following:

set NODE_OPTIONS=--max-old-space-size=4096
Posted On: 11-Jan-2024 00:50
 Log In to Chat