3.0.1rc4 upgrade with unbounded memory growth #1862

Closed
devth opened this Issue Jun 26, 2011 · 2 comments

Projects

None yet

2 participants

@devth
devth commented Jun 26, 2011

Upgraded my 3.0.x app to 3.0.1rc4. I start my server and load http://localhost:3000 and it works fine. Any refresh or new request after that causes the ruby process to consume more memory each second (it grew from around 100mb to 3.5 gigs) and consumes 99% cpu.

Update
Removing the js include from application.html.haml makes the problem go away. Still investigating..

Gemfile:

source 'http://rubygems.org'

gem "rails", "~> 3.1.0.rc4"


# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'sqlite3-ruby', :require => 'sqlite3'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug'

# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'

# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
#   gem 'webrat'
# end
group :development do
  gem 'hpricot'
  gem 'ruby_parser'
  gem 'nifty-generators'
  gem 'rails-footnotes', '~> 3.7'
  gem 'interactive_editor'
  gem 'wirble'
end

group :test do
  gem 'mocha'
  gem 'cucumber-rails'
  gem 'capybara'
  # Pretty printed test output
  gem 'turn', :require => false
end

# Rails 3.1 - Heroku
group :production do
  gem 'therubyracer-heroku', '0.8.1.pre3'
end


# gem 'rspec-rails', '>= 2.0.1', :group => [:development, :test]
gem 'devise', '~> 1.3.4'
gem 'jquery-rails'
gem 'haml', '~> 3.1.2'
gem 'haml-rails'
# gem 'compass', '~> 0.11.3'
gem 'compass', :git => 'https://github.com/chriseppstein/compass.git', :branch => 'rails31'

gem 'rqrcode'
gem 'formtastic', '~> 1.1.0'
gem 'omniauth', '~> 0.2.5'
gem 'twitter'
gem 'fb_graph'
gem 'carrierwave'
gem 'fog'

# Asset template engines
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@mislav mislav avoid auto_linking already linked emails; more robust detection of li…
…nked URLs

References #1523  [#1862 state:resolved]  [#3591 state:resolved]

Add test that shows how link text can contain HTML if needed:
the trick is using block form in combination with `raw`.
Let link text be automatically HTML-escaped

[#2017 state:resolved]
8f0b213
@jake3030 jake3030 pushed a commit to jake3030/rails that referenced this issue Jun 28, 2011
@mislav @mikel mislav + mikel avoid auto_linking already linked emails; more robust detection of li…
…nked URLs

References #1523  [#1862 state:resolved]  [#3591 state:resolved]

Add test that shows how link text can contain HTML if needed:
the trick is using block form in combination with `raw`.
Let link text be automatically HTML-escaped

[#2017 state:resolved]
533b131
@svenfuchs svenfuchs pushed a commit to svenfuchs/rails that referenced this issue Jul 2, 2011
@mislav mislav avoid auto_linking already linked emails; more robust detection of li…
…nked URLs

References #1523  [#1862 state:resolved]  [#3591 state:resolved]

Add test that shows how link text can contain HTML if needed:
the trick is using block form in combination with `raw`.
Let link text be automatically HTML-escaped

[#2017 state:resolved]
17b4fd2
Owner

Are you able to reproduce this against 3-1-stable?

devth commented Jul 11, 2011

I will try. The problem was caused by a circular reference in my application.js manifest.

@devth devth closed this Jul 11, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment