Rainbows! Rack HTTP server user/dev discussion
 help / color / mirror / code / Atom feed
* 100% cpu with faye-websocket
@ 2012-04-12  8:59 Lion Vollnhals
       [not found] ` <5722BD9D-C9FD-441E-A37C-7FFA686742A8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Lion Vollnhals @ 2012-04-12  8:59 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw

Hi,

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
end

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


regards,
Lion Vollnhals
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 100% cpu with faye-websocket
       [not found] ` <5722BD9D-C9FD-441E-A37C-7FFA686742A8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2012-04-12  9:06   ` Eric Wong
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Wong @ 2012-04-12  9:06 UTC (permalink / raw)
  To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw; +Cc: Lion Vollnhals

Lion Vollnhals <lion.vollnhals-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
> Hi,
> 
> 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?

Have you contacted other faye users/developers on this issue?
Hopefully somebody else can help you sooner.

I'm not familiar with faye at all (this is the first I've heard of it,
even), so it'll take me some time to get up to speed.  It's been a
long while since I've looked at websockets, too.
_______________________________________________
Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org
http://rubyforge.org/mailman/listinfo/rainbows-talk
Do not quote signatures (like this one) or top post when replying


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-04-12  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12  8:59 100% cpu with faye-websocket Lion Vollnhals
     [not found] ` <5722BD9D-C9FD-441E-A37C-7FFA686742A8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2012-04-12  9:06   ` Eric Wong

Code repositories for project(s) associated with this public inbox

	https://yhbt.net/rainbows.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).