Jared Blitzstein on 5 Dec 2007 19:16:10 -0000


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

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


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