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

Error "JavaScript heap out of memory" in v15.1.0 #1525

Open
haddasbronfman opened this issue Jul 13, 2023 · 2 comments
Open

Error "JavaScript heap out of memory" in v15.1.0 #1525

haddasbronfman opened this issue Jul 13, 2023 · 2 comments

Comments

@haddasbronfman
Copy link

Link to bug demonstration repository

https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main

steps to reproduce:

  1. clone the above project (opentelemetry-js-contrib)
  2. run: npm install --ignore-scripts
  3. run: npx lerna bootstrap --no-ci --hoist --nohoist=‘zone.js’ --nohoist=‘mocha’ --nohoist=‘ts-mocha’
  4. run: cd plugins/node/opentelemetry-instrumentation-mongodb/
  5. run: export RUN_MONGODB_TESTS=1
  6. from another terminal, run cd plugins/node/opentelemetry-instrumentation-mongodb/examples and run: npm run docker:start. this will start mongodb docker.
  7. run: npm run test

Expected Behavior

tests should run

Observed Behavior

tests doesn't run
image

Troubleshooting steps

  • [ V] still occurring when I run NODE_OPTIONS=--max-old-space-size=4096 nyc ts-mocha... instead of nyc ts-mocha...
@cqcmdwym
Copy link

We also faced this issue

@RobertInAms
Copy link

RobertInAms commented Nov 21, 2023

We have discovered the following :
For one of our projects, after an upgrade cycle, nyc suddenly started using 8GB which would crash our build pipeline. Investigation showed we had some unnecessary peerDependencies. We removed them and now nyc is running fast and efficient.

We think there must have been some circular dependency

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

3 participants