Mat Schaffer on 5 Dec 2007 16:29:40 -0000


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

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

  • From: Mat Schaffer <schapht@gmail.com>
  • To: talk@phillyonrails.org
  • Subject: [PhillyOnRails] Rails slow to shutdown in... leopard?
  • Date: Wed, 5 Dec 2007 11:28:54 -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:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=9bkytTwMeWzFYNGl5Dj4nJ+tx3HqbVGoPiFo6h3h5T0=; b=I/q9770+c1pnfyb1kFvIf2Sk/tstCNlD3fz0d8gzKttS+3akWb1aUXURWD6JHdqqainypgR7YBgNofgCiIzMkgTv3OTQKAabid572uQQrdMWHbEtnG3Eg27d1hIJUU1naDMWjmr0JYPxaMn6oYkxrlTiQr9bYrhFBs53+M+8t24=
  • List-archive: <http://lists.phillyonrails.org/pipermail/talk>
  • Reply-to: talk@phillyonrails.org
  • Sender: talk-bounces@phillyonrails.org

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