koicat
2010-Nov-04 22:10 UTC
Huge memory leak in benchmark.rb on converting to Rails 2.3.9
Am relatively new to ruby/rails and very new to low level stuff like memory leaks. Am trying to Rails 2.3.9 ( because of a compatibility issue with firewatir-1.6.6 ) and the mongrel process grows _very_ quickly as soon as it tries to render the page. I''ve stepped into the code with Rubymine (ruby-debug-ide 0.4.6) and narrowed things down to line 51 of action_pack/lib/action_controller/ benchmark.rb: @view_runtime = Benchmark.ms { render_output render_without_benchmark(options, extra_options, &block) } Things hang here and the task manager shows the mongrel process growing at roughly 40MB per second until I kill the process ( in Rubymine debug ) Apparently render_without_benchmark is having issues. And I''m having trouble locating the def for render_without_benchmark. The only change is the shift to Rails 2.3.9 The application is built with these components: ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] rails 2.3.5 watir 1.6.6 authlogic-2.1.3 bones-3.4.1 google-spreadsheet-ruby-0.1.1 mongrel-1.1.5-x86-mswin32-60 json-1.2.2 rack-1.0.1 roo-1.9.3 rufus-scheduler-2.0.6 spreadsheet-0.6.4.1 watirloo-0.0.8 The app also uses jquery and a number of YUI scripts Hoping for help. pat -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
koicat
2010-Nov-07 23:54 UTC
Re: Huge memory leak in benchmark.rb on converting to Rails 2.3.9
Update: Had missed changing environment.rb to specify Rails 2.3.9. Still having similar problem but the leak is only 3-4MB per second... ;-) Will keep looking to see what else I have missed. Any suggestions would be most, most welcome! pat On Nov 4, 2:10 pm, koicat <pmn...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Am relatively new to ruby/rails and very new to low level stuff like > memory leaks. > > Am trying to Rails 2.3.9 ( because of a compatibility issue with > firewatir-1.6.6 ) and the mongrel process grows _very_ quickly as soon > as it tries to render the page. > > I''ve stepped into the code with Rubymine (ruby-debug-ide 0.4.6) and > narrowed things down to line 51 of action_pack/lib/action_controller/ > benchmark.rb: > > @view_runtime = Benchmark.ms { render_output > render_without_benchmark(options, extra_options, &block) } > > Things hang here and the task manager shows the mongrel process > growing at roughly 40MB per second until I kill the process ( in > Rubymine debug ) > > Apparently render_without_benchmark is having issues. And I''m having > trouble locating the def for render_without_benchmark. > > The only change is the shift to Rails 2.3.9 > The application is built with these components: > > ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] > rails 2.3.5 > watir 1.6.6 > authlogic-2.1.3 > bones-3.4.1 > google-spreadsheet-ruby-0.1.1 > mongrel-1.1.5-x86-mswin32-60 > json-1.2.2 > rack-1.0.1 > roo-1.9.3 > rufus-scheduler-2.0.6 > spreadsheet-0.6.4.1 > watirloo-0.0.8 > > The app also uses jquery and a number of YUI scripts > > Hoping for help. > > pat-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.