title: Rails process taking too long to respond
body: <p>When I am sending a a GET request to rails server it takes too long time to respond   (29 minute)</p>
  
  <p>Below is the log snippet </p>
  
  <p>Log says that there is an error in code, it is ok, but why take so long to respond (1723579 ms)  I am unable to find any reason of such kind of behavior. Previously when server was working fine this js request only take 9 ms to respond. but suddenly it started to behave like this. How should i debug the application to trace the root cause of such unexpected behavior. </p>
  
  <pre><code>        Started GET "/my-server/jobs/workers?_=1356363515400" for 27*.*.*.* at 2012-12-24 21:08:35 +0530
      ActionView::Template::Error ():
               1: &lt;% @jobs.each do |job| %&gt;
               2:   $('#cron_&lt;%= job.id %&gt;').attr('data-content', '&lt;%= distance_of_time_in_words_to_now(job.next_fire_info, true) %&gt;');
               3: &lt;% end %&gt;
               4: 
               5: &lt;% @workers.each do |worker| %&gt;
             app/models/job.rb:16:in `next_fire_info'
             app/views/jobs/workers.js.erb:2:in `block in _app_views_jobs_workers_js_erb__101155230_81985760'
             app/views/jobs/workers.js.erb:1:in `_app_views_jobs_workers_js_erb__101155230_81985760'
  
  
   Rendered jobs/workers.js.erb (1718348.7ms)
  
   Completed 500 Internal Server Error in 1723579ms
  </code></pre>
  
  <p>I am on Rails 3.1.3, 
  Ruby 1.9.3p194, 
  MongoDB version v2.2.0, pdfile version 4.5, 
  32 bit Ubuntu (12.04) with 2 gb ram </p>