I want to run stress tests using node.js, socket.io and socket.io-client.
I want to get network bandwidth, CPU / memory usage, etc.
I have a node.js socket.io server on amazon, size is XLARGE.
Now I want to run several .io client sockets on other amazon servers and connect them to my server.
I ran it in different processes, but one node.js process takes 15 MB of memory. I want to test simultaneous socket connections 100.io, so this is not an option.
My question is: can I run, for example, 60k different .io client sockets in one instance of node.js?
This is my client code:
var socket = require('socket.io-client')('http://someAddress:3000'); socket.on('connect', function(){ socket.on('news', function(data){ }); socket.emit('event', { data: "Connection test." }); });
source share