Mat Schaffer on 5 Dec 2007 19:56:13 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PhillyOnRails] Rails slow to shutdown in... leopard?

  • From: Mat Schaffer <schapht@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: Re: [PhillyOnRails] Rails slow to shutdown in... leopard?
  • Date: Wed, 5 Dec 2007 14:55:29 -0500
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:in-reply-to:content-type:content-transfer-encoding:mime-version:subject:date:references:x-mailer; bh=TGaMy/xcXhwjhaUAMUTSrR35YLMKWU83yyuaGcM/F50=; b=TVzr93BbJbnX94m9utcK6OeZvfwF1hOnFxtM/YlfXnD+hIFYgu/yAWDEfOGfyErUwzZh0DFk5ZlvUn+xXpt9pw+xs8maw5BoxpNDuQthlJUsBbU2+fKMT8Rlihv/VclGbWrtUQoohZLGT4ffXCNKIIccSOu6jzhtUxVE7k1SSbM=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

First: holy rps batman! I hadn't realized RC2 had such a speed difference over 1.2.5.

Second: Verified. RC2 works for me too. Looks like an issue with 1.2.5 so I tested 1.2.6, same issue. Whatever it is it looks like they fixed in in trunk so I guess I'll just have to grit my teeth a little while longer.

Thanks Jared!
Mat

On Dec 5, 2007, at 2:15 PM, Jared Blitzstein wrote:

I just gave it a try with a rails 2.0 RC2 app I'm working on and it shuts down fine, within a second, when launching from webrick.

ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.10.1]
Macbook Pro 2.16 / 2gb
OS X 10.5.1

On Dec 5, 2007, at 11:28 AM, Mat Schaffer wrote:

I talked with Randy about this in person a bit, but I thought I'd throw it out there incase anyone else was seeing this issue on other platforms.

Basically, start a rails app with a simple "hello world" controller. Run the server and hit it with:
ab -n 300 http://127.0.0.1:3000/hello


Then Ctrl+C to shut the server down. Since I upgraded to Leopard, the behavior will be that ruby sucks up 100% CPU for a considerable length of time that seems to be proportional to the number of dynamic requests made, and eventually stop.

Happens on both webrick and mongrel (longer on webrick) both built- in ruby (ruby 1.8.6 (2007-06-07 patchlevel 36) [universal- darwin9.0]) and macports (ruby 1.8.6 (2007-09-23 patchlevel 110) [i686-darwin9.0.0]). Rails 1.2.5, mongrel-1.0.1 and mongrel-1.1.1.

I'm probably gonna spend some time this week rolling versions up and down to see if I can find out where it's having trouble. Google didn't turn up anything obvious so I thought I'd see if anyone else here had some thoughts. Anyone seen this or something like it?

Thanks,
Mat
_______________________________________________
To unsubscribe or change your settings, visit:
http://lists.phillyonrails.org/mailman/listinfo/talk

_______________________________________________ To unsubscribe or change your settings, visit: http://lists.phillyonrails.org/mailman/listinfo/talk

_______________________________________________ To unsubscribe or change your settings, visit: http://lists.phillyonrails.org/mailman/listinfo/talk