-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Description
Hi there,
I have this code:
require 'paho-mqtt'
client = PahoMqtt::Client.new(username: 'testuser', password: 'testpass', persist: true)
client.connect('127.0.0.1', 1884)
loop { sleep 60 }Checking top, it starts out taking 10% CPU, after some seconds it drops to 6.4% and then some seconds after that it drops to 5.9% and several minutes later down to 5.7% cpu and stays there.
This is a 2.3ghz Xeon and to put that into perspective, the Rails process takes 5.6% processing several requests a second.
Any ideas what is causing the quite high CPU on an idle connection?
Metadata
Metadata
Assignees
Labels
No labels