I use the cluster module according this manual:
http://nodejs.org/api/cluster.htmlThe block of code is:
var cluster = require('cluster');
var http = require('http');
var numCPUs = require('os').cpus().length
if (cluster.isMaster) {
// Fork workers.
for (var i = 0; i < numCPUs; i++) {
cluster.fork();
}
cluster.on('exit', function(worker, code, signal) {
console.log('worker ' + worker.process.pid + ' died');
});
} else {
// create server
}
And I get this warning:
C:\Program Files\nodejs>node server.js
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.
Warning: Native modules not compiled. XOR performance will be degraded.
Server is listening on port 8080
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.
Warning: Native modules not compiled. UTF-8 validation disabled.
Server is listening on port 8080
Warning: Native modules not compiled. XOR performance will be degraded.
Warning: Native modules not compiled. UTF-8 validation disabled.
Server is listening on port 8080
Server is listening on port 8080
The program did what it warned.
What is the possibility of the cause, and how to fix this.
I use them on a Ubuntu 12.04 server and a windows 7 computer. The node version is 0.10.13.
I also tested version 0.11.03 on both machine the windows one works fine but the linux.
I love cluster and I don't want to ditch this. The version I would use is 0.10.13 because it's more stable.
Thank you,