I am using ZMQForwarder as an example with a poller.poll(250).

On Feb 16, 2011, at 12:49 PM, Chuck Remes wrote:

> 
> On Feb 16, 2011, at 2:33 PM, Michael Kogan wrote:
> 
>> The code is very simple with a single INPROC forwarder within process and a 
>> TCP Forwarder to talk to the other node. I am also adding ZooKeeper to 
>> discover and connect and configure the nodes. I am getting CPU utilization 
>> that is just nuts, though, I would love to be able to be able to halt the 
>> thread that does not have any messages for it, it is that I need to be able 
>> to let it know that the client it is servicing is gone and it should shut 
>> down. Java is discouraging the use of Thread.Stop().
> 
> Mike,
> 
> perhaps you are polling too often. What value are you passing to zmq_poll()? 
> Recall that the timeout value is measured in +microseconds+ so any value 
> under 1000 is probably going to spike your CPU.
> 
> cr
> 
> _______________________________________________
> zeromq-dev mailing list
> [email protected]
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to