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

Heap Memory keeps increasing #9081

Closed
KevinDenys opened this issue Oct 23, 2019 · 7 comments
Closed

Heap Memory keeps increasing #9081

KevinDenys opened this issue Oct 23, 2019 · 7 comments
Labels

Comments

@KevinDenys
Copy link

image

We have tried the following things:
#2179 (comment) (no difference)
#6399 (comment) (no difference)

Using --no-cache has no difference

After running heap analysis
image

Could Typescript be the issue? If so is there a way to fix this?

More info

  System:
    OS: macOS Mojave 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
  Binaries:
    Node: 10.14.1 - /usr/local/bin/node
    npm: 6.8.0 - /usr/local/bin/npm
  npmPackages:
    jest: ^24.7.1 => 24.7.1 
@bartvanmiegem
Copy link

I have identically the same issue... The memory heap is stacking up for some reason, but I have no clue why...

@lh0x00
Copy link
Contributor

lh0x00 commented Oct 24, 2019

You can provide more info like jest config?

@KevinDenys
Copy link
Author

module.exports = { verbose: false, preset: 'ts-jest', testEnvironment: 'node', testMatch: ['<rootDir>/**/__tests__/**/*.spec.ts'], coverageDirectory: './test-reports', coveragePathIgnorePatterns: ['node_modules', '<rootDir>/src/createServer.ts'], };

@lh0x00
Copy link
Contributor

lh0x00 commented Oct 30, 2019

hi @KevinDenys , I see Jest is working well with your config exclude your preset you use. I think this issue from ts-jest and you should create a issue for this project.

jeremija added a commit to rondomoon/rondo-framework that referenced this issue Jan 10, 2020
Jest runs out of memory when run in Docker, possibly because of a memory
leak in ts-jest.

The tests will now run after the build, on the built *.js files. As a
consequence, the jest tests will run faster because ts-jest will no
longer be invoked in ci.

Check the package.json test:ci script for more info.

jestjs/jest#7874
jestjs/jest#9081
@github-actions
Copy link

This issue is stale because it has been open for 1 year with no activity. Remove stale label or comment or this will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 25, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.

@github-actions
Copy link

github-actions bot commented May 1, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants