nrwl / nx

Smart Monorepos · Fast CI
https://nx.dev
MIT License
23.25k stars 2.31k forks source link

nx serve fails with out-of-memory exception #16731

Closed Markus-Ende closed 10 months ago

Markus-Ende commented 1 year ago

Current Behavior

JavaScript heap out of memory

Expected Behavior

should serve happily like in the previous version :)

GitHub Repo

No response

Steps to Reproduce

unfortunately I can't create a repro repo and it happens in a closed source project

Nx Report

Node   : 16.18.0
   OS     : linux x64
   npm    : 8.19.2
   Hasher : Native

   nx                 : 16.0.3
   @nx/js             : 16.0.3
   @nx/jest           : 16.0.3
   @nx/linter         : 16.0.3
   @nx/workspace      : 16.0.3
   @nx/angular        : 16.0.3
   @nx/cypress        : 16.0.3
   @nx/devkit         : 16.0.3
   @nx/eslint-plugin  : 16.0.3
   @nx/nest           : 16.0.3
   @nx/node           : 16.0.3
   @nx/plugin         : 16.0.3
   @nx/storybook      : 16.0.3
   @nrwl/tao          : 16.0.3
   @nx/webpack        : 16.0.3
   nx-cloud           : 16.0.5
   typescript         : 4.9.5
   ---------------------------------------
   Community plugins:
   @ionic/angular               : 6.7.4
   @nestjs/ng-universal         : 6.1.0
   @ngrx/component-store        : 15.3.0
   @ngrx/effects                : 15.3.0
   @ngrx/entity                 : 15.3.0
   @ngrx/router-store           : 15.3.0
   @ngrx/store                  : 15.3.0
   @mands/nx-playwright         : 0.4.0
   @ngrx/schematics             : 15.3.0
   @ngrx/store-devtools         : 15.3.0
   @nguniversal/builders        : 15.1.0
   @nxext/capacitor             : 15.7.0
   @nxext/ionic-angular         : 15.7.0
   @storybook/angular           : 7.0.7
   @testing-library/angular     : 13.4.0
   @trumbitta/nx-plugin-openapi : 1.12.1
   ---------------------------------------
   Local workspace plugins:
         @qupaya/workspace-plugin

Failure Logs

image

Additional Information

pumano commented 1 year ago

got that problems too, and memory footprint about 7+ gb when use angular 16 instead of 15 (4-4.7gb for my project). Can't wait properly working browser-esbuild

Markus-Ende commented 1 year ago

update: did the full delete node_modules and cache, refresh package-lock cycle. It seems to work now (with NX_NON_NATIVE_HASHER still set). I'll keep it open for now, and try a bit longer, but the memory crash did not occur again (still 16.0.3).

github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏

github-actions[bot] commented 9 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.