From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: * X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=1.0 required=3.0 tests=AWL,HK_RANDOM_FROM, MSGID_FROM_MTA_HEADER,TVD_RCVD_IP shortcircuit=no autolearn=no version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: Re: 100% cpu with faye-websocket Date: Thu, 12 Apr 2012 02:06:44 -0700 Message-ID: <20120412090644.GA4345@dcvr.yhbt.net> References: <5722BD9D-C9FD-441E-A37C-7FFA686742A8@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334222781 18183 80.91.229.3 (12 Apr 2012 09:26:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 09:26:21 +0000 (UTC) Cc: Lion Vollnhals To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Thu Apr 12 11:26:21 2012 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Content-Disposition: inline In-Reply-To: <5722BD9D-C9FD-441E-A37C-7FFA686742A8-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:344 Archived-At: Received: from 50-56-192-79.static.cloud-ips.com ([50.56.192.79] helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SIGIG-00027J-NZ for gclrrg-rainbows-talk@m.gmane.org; Thu, 12 Apr 2012 11:26:20 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id BAA39263033; Thu, 12 Apr 2012 09:26:16 +0000 (UTC) Received: from dcvr.yhbt.net (dcvr.yhbt.net [64.71.152.64]) by rubyforge.org (Postfix) with ESMTP id A691726302F for ; Thu, 12 Apr 2012 09:06:45 +0000 (UTC) Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EECB61F5A5; Thu, 12 Apr 2012 09:06:44 +0000 (UTC) Lion Vollnhals 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