Skip to content

Memory leak: service.js process is running after node heap out of memory crash #387

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

Closed
vlamitin opened this issue Feb 13, 2020 · 3 comments
Labels

Comments

@vlamitin
Copy link

vlamitin commented Feb 13, 2020

Current behavior

Every time node falls with Heap out of memory, the <project>/node_modules/fork-ts-checker-webpack-plugin/lib/service.js is still running, causing memory leak. The more crashes: the more service.js processes causing leak

Expected behavior

Proper shutdown of all running services

Steps to reproduce the issue

  • run node --max-old-space-size=256 ./node_modules/.bin/webpack-dev-server on any mid-size webpack+typescript+react project
  • wait node Heap out of memory crash
  • ps aux | grep fork-ts-checker

Issue reproduction repository

Environment

  • fork-ts-checker-webpack-plugin: 4.0.4
  • typescript: 3.7.4
  • tslint: 5.11.0
  • webpack: 4.19.1
  • os: linux mint 19.1
@vlamitin vlamitin added the bug label Feb 13, 2020
@piotr-oles piotr-oles mentioned this issue Apr 18, 2020
26 tasks
@piotr-oles
Copy link
Collaborator

@vlamitin
Please try fork-ts-checker-webpack-plugin@alpha - I've published a new version which should resolve this issue 🚀
I will close this issue to clean-up the backlog. If this release didn't solve the issue, we can re-open this :)

@IanVS
Copy link

IanVS commented Jul 31, 2020

Was the alpha released to the 4.x branch? It seems to not exist anymore, and I am getting out of memory errors using 4.1.6. I'm unable to upgrade to version 5 for now, because I am stuck on Node 8.

@piotr-oles
Copy link
Collaborator

Unfortunately, the alpha was released on the 5.x branch

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

No branches or pull requests

3 participants