JustinTulloss/zeromq.node — Issue #95: Node.js sub server over ran by PHP pub server even when HWM is set in sub server
Author: bobliusf
Created: 2012-02-29 01:46:33+00:00
State: open

I have a set up of that uses PHP as a pub server. When the subscriber is also in PHP, I can send about 300k messages and the subscribe server works fine.

However, when I swap out the subscribe server with node.js based code, the subscribe server starts to hang and ram usage goes up within GBs within a matter of seconds at a pub rate of 80k r/s. This happens even if HWM is set to 80k per second.

I am testing this on a MBP / OS X Lion.

I understand that 300k r/s may be too much for Node.js, but I would think HWM should kick in and drop the exceeding messages. So that the Node.js will not be overran with stable memory usage at least.