Looooong renders suddenly

This is odd. I’m suddenly getting extremely long render times (25-44
seconds!) in my app. It’s happening with both Mongrel and WEBrick in dev
mode. And nothing strange is showing up in the development log. Any
suggestions on how to track this down?

Hmmm… okay, I’ve confirmed that it is not a problem with my app.
Everything works great on other computers. But on my main machine, every
render rails does takes several seconds each. I’m running from
vendor/rails, so that seems to be fine (since it works fine on other
systems). Does it sound like my ruby install somehow got hosed? Anything
I can do to test it out?

Ryan W. wrote:

Hmmm… okay, I’ve confirmed that it is not a problem with my app.
Everything works great on other computers. But on my main machine, every
render rails does takes several seconds each. I’m running from
vendor/rails, so that seems to be fine (since it works fine on other
systems). Does it sound like my ruby install somehow got hosed? Anything
I can do to test it out?

Sounds like you’re out of memory and dying by swap.
What OS is your machine running? What % of time is it spending on IO
wait?

phil

Sounds like you’re out of memory and dying by swap.
What OS is your machine running? What % of time is it spending on IO
wait?

OSX 10.4

It was spending a good 20+ seconds on wait. I rebooted a couple of times
and the issue persisted. Then it suddenly went away. Everything works as
normal now. Very odd. I’ve never had that happen before. Made for a very
frustrating hour or so trying to track it down in my app!

Could it have been Spotlight indexing a bunch of new files you added?
Just an idea…

Good point. I should have looked at my processes first thing. I just
knee-jerkingly assumed it was in my app or ruby install, so I jumped to
other boxes for comparison. If it happens again, I’ll check that first.

Thanks!

OSX 10.4

It was spending a good 20+ seconds on wait. I rebooted a couple of times
and the issue persisted. Then it suddenly went away. Everything works as
normal now. Very odd. I’ve never had that happen before. Made for a very
frustrating hour or so trying to track it down in my app!

Could it have been Spotlight indexing a bunch of new files you added?
Just an idea…

  • Danny

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs