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=0.0 required=3.0 tests=MSGID_FROM_MTA_HEADER, TVD_RCVD_IP shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Lion Vollnhals Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: 100% cpu with faye-websocket Date: Thu, 12 Apr 2012 10:59:55 +0200 Message-ID: <5722BD9D-C9FD-441E-A37C-7FFA686742A8@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1334221219 6708 80.91.229.3 (12 Apr 2012 09:00:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Apr 2012 09:00:19 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Thu Apr 12 11:00:15 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=GmZTaAJZmwfq7Tt8aoosSGFmjk5xK7eVGTzD9DDx1Uk=; b=E7f6zOwTwwT5+blzOwIWc38eqxZQyLn7AD0x0nl0ZI13YbxhY9rKotH5io9sx3Yu8p U2EcjHERThiRiYNH9JVjvQyfCwHre5fSf860Ru6JG19q2YwPMFWHwC9/vFZJQtBJ+4yU MdmtnjSWrLzp/DvtWL3EybVAR0r6mtSXmKJGVdNsG43IlALLzFm+4jFirvbuFRjkYAGU s6JPh7NDhhPyBpDYYj76GdipN/bRaBhxp6OBAub6ho3x/7ral1AFkcSZ8gIhIiI6HxZD thRIIV3XoJoKYfuPz4kMs08Fwmt2jZfn0d1XV55eYvTohYAcFU6g2XjuGxAcqNU6/dwZ K+4w== X-Mailer: Apple Mail (2.1257) 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:343 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 1SIFsu-0004oT-KV for gclrrg-rainbows-talk@m.gmane.org; Thu, 12 Apr 2012 11:00:08 +0200 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 7FA22263033; Thu, 12 Apr 2012 09:00:07 +0000 (UTC) Received: from mail-bk0-f50.google.com (mail-bk0-f50.google.com [209.85.214.50]) by rubyforge.org (Postfix) with ESMTP id 6139D26302F for ; Thu, 12 Apr 2012 09:00:00 +0000 (UTC) Received: by bkuw11 with SMTP id w11so1696215bku.23 for ; Thu, 12 Apr 2012 01:59:59 -0700 (PDT) Received: by 10.204.152.27 with SMTP id e27mr470061bkw.55.1334221197211; Thu, 12 Apr 2012 01:59:57 -0700 (PDT) Received: from [192.168.178.99] (h-213.61.130.29.host.de.colt.net. [213.61.130.29]) by mx.google.com with ESMTPS id z17sm9497059bkw.12.2012.04.12.01.59.56 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Apr 2012 01:59:56 -0700 (PDT) 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