-
Notifications
You must be signed in to change notification settings - Fork 30k
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
[Cluster] "AssertionError: Resource leak detected" issue from 12.7 still occurs #3149
Comments
Reproduction of error:
var cluster = require('cluster');
cluster.schedulingPolicy = 2; // 1 - none (no bug), 2 - round robin (bug)
if (cluster.isMaster){
const WORKERS_COUNT = 4;
for (var i = 0; i < WORKERS_COUNT; i++) {
cluster.fork();
}
} else {
var http = require('http'),
port = process.env.PORT || '3000';
var srv = http.createServer(function(req, res) {
if (Math.random() < 0.1) throw new Error('Test error!');
res.writeHead(200);
res.write('hello');
res.end();
});
srv.listen(port, function() {
console.log('Worker is ready');
});
}
Succesfully reproduced on node 4.1.2 and 0.12.7. |
In addition, if use policy = none AND --expose_gc node crushes in C module: |
Relevant: #3551 |
@Unterdrucker Does it happen with master or v5.0.0-rc.2 or v4.2.2-rc.1? A fix was landed recently in da21dba and is about to be released. FWIW, I can't reproduce what you're seeing with master. |
@bnoordhuis yes, it's doesn't happen in 5.0.0, thank you, I am going to try it in production. |
Sounds like this has been fixed, so I'm going to close this. Please let me know if it needs to be reopened. |
After moving from node v0.10.38 to v0.12.7 I found an error that occurs sometimes (from 0 to 4-5 in a day) only in production. Process output the same with described in this old topics:
nodejs/node-v0.x-archive#8860
nodejs/node-v0.x-archive#9409
Is it fixed or it's so minor that fix is skipped for a half of year? Is there any workarounds (described in #9404 is not working and just increasing damage by stuck all over the clusterized processes).
The text was updated successfully, but these errors were encountered: