Rainbows! Rack HTTP server user/dev discussion
 help / color / 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, back to index

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

Rainbows! Rack HTTP server user/dev discussion

Archives are clonable:
	git clone --mirror http://bogomips.org/rainbows-public
	git clone --mirror http://ou63pmih66umazou.onion/rainbows-public

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.rainbows
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.rainbows

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git