You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
process.title='up-test-worker';varhttp=require('http');module.exports=http.Server(function(req,res){res.writeHead(200);res.end('Hello World');console.log('connection...'+newDate());});setInterval(function(){console.log(process.pid+' waiting for conntections...');},5000);
Use apache's benchmarking tool:
ab -n16 -c8 http://localhost:3100/
c can be anything > numWorkers
n should be anything > c
On rare occasions, the above command will succeed without causing errors. Might want to try higher numbers.
If up becomes saturated with (very) minimal traffic, the server will become unresponsive to requests and memory usage will skyrocket along with CPU.
I only tested locally, so it's possible it might just be me, but I doubt it.
You may see this message:
(libuv) Failed to create kqueue (24)
index.js
blah.js
Use apache's benchmarking tool:
c can be anything > numWorkers
n should be anything > c
On rare occasions, the above command will succeed without causing errors. Might want to try higher numbers.
I didn't investigate too deeply beyond "oh... up is broken", but I think it has something to do with this: http://stackoverflow.com/a/15537504/670023
I think this was discussed in #62, but I wanted to make something more prominent and supply a test.
The text was updated successfully, but these errors were encountered: