Open sprijk opened 10 years ago
@sprijk check max number of sockets?
Can I set this somewhere in the zeromq.node module?
The ctx variable inside zmq module is not exposed in any way (and I assume its by design). However looking at the binding code I see that creating a new context object translates to a zmq_init() call, so maybe in your code you can just do new zmq.Context(...) ? maybe someone who tried can comment on this approach...
Your system most likely are running out of file descriptors -- if you are on linux, check your ulimits (ulimit -a) and see how many open files you are allowed -- the default is 1024 which looks like is what you are hitting. Other system Win/OSx will have similar setting but not aware of how to figure those out.
@sprijk Can I set this somewhere in the zeromq.node module?
Yes, doing this:
var zmq = require('zmq');
zmq.Context.setMaxSockets(1000000);
When I am doing this:
I get:
Is this normal?
OS: Ubuntu 13.10 libzmq3: 4.0.4 zeromq.node: 2.6.0