100% cpu with faye-websocket

Lion Vollnhals lion.vollnhals at googlemail.com
Thu Apr 12 08:59:55 UTC 2012


please CC me as i am not on the list.

i am using rainbows (configured with eventmachine) to serve faye websocket connections.
see https://github.com/faye/faye-websocket-ruby.

when the first user connects (using websocket protocol), cpu usage goes to 100% and stays there.
even when the user is idle or disconnects.

is this normal behavior?

i inspected the process using dtrace under mac os x and saw that the process is doing a lot of read and write system calls all the time.
i can observe the same 100% cpu behavior on linux. so this is not a mac os x issue.

here is my config file and command line:

# rainbows.conf
Rainbows! do
  use :EventMachine

rainbows config.ru -c path/to/rainbows.conf -E production -p 9292

Lion Vollnhals

More information about the rainbows-talk mailing list