Flow out of memory
This is with Flow version 0.29.0, in our CI environment, which admittedly is not as resource-rich as our development laptops. Flow was working fine in our CI environment, with the exact same resources, under v0.26.0.
- Does this indicate that the machine needs more RAM?
- Is it possible to make the type-checker run with less shared memory?
[2016-07-28 01:15:11] Initializing Server (This might take some time)
[2016-07-28 01:15:11] executable=/usr/src/app/node_modules/flow-bin/vendor/flow
[2016-07-28 01:15:11] version=0.29.0
[2016-07-28 01:15:11] Parsing
[2016-07-28 01:15:13] Building package heap
[2016-07-28 01:15:13] Loading libraries
[2016-07-28 01:15:13] Running local inference
SharedMem.Out_of_shared_memory
i also got this problem in my laptop (osx, el capitan). Running flow will make the swapfiles getting bigger and bigger until i'm running out of disk space, I think it must be some kind of memory leak. The problem occured when using flow v0.27.0, v0.28.0 and v0.29.0. When using v0.26.0 there wasn't any problem
Could you check with master? cc @gabelevi, who fixed a memory bug that will be in 0.30. Might be related...
@avikchaudhuri, yes, I will check later today.
The bin built against master seems to fix the memory issue. When will you be releasing 0.30.0?
@opensrcken Awesome! 0.30 should go out early next week.
Hmm... A colleague and me are currently running into the same problem with 0.30.0. We have flow on our dev machines, and it just consumes all memory and swap until the HDDs are full and we need to reboot. This makes developing kind of a pain in the ass.
@frontendphil Sorry that is happening, reopening...
@thejameskyle nobodies perfect and going back to 0.26 solved the problem for now, so we don't have to work without flow
@frontendphil Oh that's odd. Which operating system? How much physical memory is available? And how much swap was getting used?
We're on latest Mac OS. I have 16GB of memory and my colleague 8.. Swap grows, till our HDDs run out of memory. I've seen 60GB of swap being used, but also 80GB on other machines..
I'm seeing this too on Ubuntu 16.04, 8GB RAM, RES grows till I have to reboot.
0.26 works, however, with just 43M RES.
still got this issue even when using 0.32.0 (osx el capitan)
Me too.
Flow 0.32.0 on OsX El Capitan.
Available RAM 4 GB.
When running the flow process grows up to 10 GB of memory during the parsing task, then drop to 5 and raise again to 10 GB before producing the output.
I think I finally know what's going on. I'm fixing it, expect something pretty soon.
On Wednesday, September 21, 2016, dej611 [email protected] wrote:
Me too. Flow 0.32.0 on OsX El Capitan. Available RAM 4 GB. When running the flow process grows up to 10 GB of memory during the parsing task, then drop to 5 and raise again to 10 GB before producing the output.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/facebook/flow/issues/2152#issuecomment-248564041, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFNMQXlN6yYcwJ8wxgnloR7wL6VrHqPks5qsP3ngaJpZM4JWx77 .
Still there with flow 0.33 :(
@dej611 can you describe your problem again? It's normal for flow to use and release memory, the problem in other cases seemed to be memory leaking forever. While there's still work to be done (and will be done), much of the memory leak issue should be mitigated in 0.33.
On Friday, September 30, 2016, dej611 [email protected] wrote:
Still there with flow 0.33 :(
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/facebook/flow/issues/2152#issuecomment-250694337, or mute the thread https://github.com/notifications/unsubscribe-auth/AFFNMbQParjivWIEfE16C1w9T6LQtRnCks5qvM6zgaJpZM4JWx77 .
@avikchaudhuri 0.33.0 fixed the memory error. Thanks a lot!
@avikchaudhuri Currently I have flow going up to 10 GB of memory, then drop to 2 GB before starting raise again to 10 GB during the analysis. I want to isolate the issue, create a clean project so I can report something more more precise number for it this weekend.
I've tried to reproduce this issue at home on two different projects on another MacBook Air but no luck. Will try again in the office where I had this problem to isolate the issue with a simple project.
I am still experiencing this issue in Flow 0.33.0. I have 8GB RAM and it climbed to 18.3GB RAM in MacOS Activity Monitor. I am using built-in Flow support that comes with WebStorm 2016.3 EAP, so it may be attributed to the EAP's bugginess. However, the built-in flow support does use the flow-bin file.