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
Meteor producing a large amount of TIME_WAIT TCP connections on windows #4125
Comments
+1 I also got this error today. After few tries, it worked fine. Not sure the reason for error. |
I had this issue today as well. For me, netstat -ano was exceeding the max buffer size of stdout, which has a default of 200 KB. I increased the size and it started working again. In run-mongo.js (for me, it was in appdata,
to this:
Note that the max buffer may not have to be that large, but I didn't want to mess around. |
I believe this is the same issue I'm facing. However, even when setting the buffer to 1024*1024, I still get the error child_process.exec('netstat -ano', { maxBuffer: 9024 * 9024 }, function (error, stdout, stderr){
...
}); If I run the command manually, it takes approx. 26 seconds for it to come back. Most of it is something that looks like:
I have no idea if this in the intended behaviour? But at least we have a work around for the moment. Thanks @Lamarius |
Hmm, we made a similar fix for Unix (#2158), we should probably just boost this buffer too. It's a little weird that these sockets are all being leaked though ( |
After successfully running meteor, any subsequent attempts to restart meteor (including meteor itself reacting to code changes etc.) will result in it crashing:
Error: Couldn't run netstat -ano: {}
Running this command manually, I see an indefinite list of TIME_WAIT TCP connections. So it's not that the command couldn't run, it's more likely that the child process times out?
Waiting X amount of seconds (or minutes) until the list clears allows you to continue. However, this obviously impacts dev time and receiving rapid feedback while making changes.
Meteor version: 1.1.0.1
OS: Windows 8 Pro (64bit)
Here is the stack trace:
The text was updated successfully, but these errors were encountered: