On 14 Oct 2008, at 18:20, emarthinsen wrote:

>
> Hello-
>
> I built a rails app and all of a sudden its performance has plumeted.
> There's no specific culprit I have been able to find in my code.
> Here's a sample line from my log file:
>
> Processing PagesController#faq (for 72.93.100.34 at 2008-10-14
> 13:04:57) [GET]
>  Session ID:
> BAh7BzoMY3NyZl9pZCIlMTZlODgxMDE1OTVkNDc5MjBjMDkwOTQwNmE2OTky
> YmUiCmZsYXNoSUM6J0FjdGlvbkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhh
> c2h7AAY6CkB1c2VkewA=--30d9fb5b1b5000e412e76309060148ecf42d8422
>  Parameters: {"action"=>"faq", "controller"=>"pages"}
> Rendering template within layouts/application
> Rendering pages/faq
> Completed in 8.29165 (0 reqs/sec) | Rendering: 7.91346 (95%) | DB:
> 0.00000 (0%) | 200 OK
>
> From this, it looks like it's struggling to render the page. The DB%
> is at zero, so the usual culprit doesn't seem to apply.
>
Use ruby-prof. At least at one point in the past if you did queries  
(or caused queries to be done) from the view then that would count as  
time spent rendering so this could still be a db problem.

Fred



> Here's my server setup:
>
> Fedora 9
> MySql 5.0.51a
> nginx 0.6.23
> mongrel 1.1.5
> mongrel_cluster (running 2 instances of mongrel in the cluster)
>
> The site does use haml, which I know to be a little slower to render,
> but still, 8 seconds to render a page seems like an excessive amount
> of time.
>
> I'm not even sure where to start troubleshooting this one. Does anyone
> have any ideas? Has anyone seen something like this before?
>
> Regards,
> Eric
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to