开发者

Random Rails 3 erb partials taking very long time to render

I'm running Rails 3 and Ruby 1.8.7. I'm seeing this in my production logs constantly and it happ开发者_StackOverflow社区ens at random too. One of the partials in a loop of them being rendered taking an inordinate amount of time.

Rendered entries/_entry.html.erb (5.9ms)

Rendered entries/_entry.html.erb (7.9ms)

Rendered entries/_entry.html.erb (6.1ms)

Rendered entries/_entry.html.erb (1726.9ms)

Rendered entries/_entry.html.erb (5.2ms)

Rendered entries/_entry.html.erb (5.3ms)

Rendered entries/_entry.html.erb (5.3ms)

Rendered entries/_entry.html.erb (5.9ms)

Rendered entries/_entry.html.erb (5.4ms)

Anyone have any ideas what might be causing this?


One big slow render amidst small ones one like that is a sign that your garbage collection is happening then. Switch to Rails enterprise Edition to solve it. I also think ruby 1.9.2+ handles this better, though I'm not certain.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜