diff --git a/app/models/admin_dashboard_data.rb b/app/models/admin_dashboard_data.rb index b1bec980d..b5ca6de75 100644 --- a/app/models/admin_dashboard_data.rb +++ b/app/models/admin_dashboard_data.rb @@ -91,7 +91,7 @@ class AdminDashboardData ] add_problem_check :rails_env_check, :ruby_version_check, :host_names_check, - :gc_checks, :ram_check, :google_oauth2_config_check, + :ram_check, :google_oauth2_config_check, :facebook_config_check, :twitter_config_check, :github_config_check, :s3_config_check, :image_magick_check, :failing_emails_check, :default_logo_check, :contact_email_check, @@ -169,10 +169,6 @@ class AdminDashboardData I18n.t("dashboard.host_names_warning") if ['localhost', 'production.localhost'].include?(Discourse.current_hostname) end - def gc_checks - I18n.t("dashboard.gc_warning") if ENV['RUBY_GC_MALLOC_LIMIT'].nil? - end - def sidekiq_check last_job_performed_at = Jobs.last_job_performed_at I18n.t('dashboard.sidekiq_warning') if Jobs.queued > 0 and (last_job_performed_at.nil? or last_job_performed_at < 2.minutes.ago) diff --git a/config/deploy.rb.sample b/config/deploy.rb.sample index aa14a3e96..363f15890 100644 --- a/config/deploy.rb.sample +++ b/config/deploy.rb.sample @@ -43,7 +43,7 @@ end namespace :deploy do desc 'Start thin servers' task :start, :roles => :app, :except => { :no_release => true } do - run "cd #{current_path} && RUBY_GC_MALLOC_LIMIT=90000000 bundle exec thin -C config/thin.yml start", :pty => false + run "cd #{current_path} && bundle exec thin -C config/thin.yml start", :pty => false end desc 'Stop thin servers' @@ -53,7 +53,7 @@ namespace :deploy do desc 'Restart thin servers' task :restart, :roles => :app, :except => { :no_release => true } do - run "cd #{current_path} && RUBY_GC_MALLOC_LIMIT=90000000 bundle exec thin -C config/thin.yml restart" + run "cd #{current_path} && bundle exec thin -C config/thin.yml restart" end end diff --git a/config/discourse.config.sample b/config/discourse.config.sample index a3f3652fd..7e8bd8540 100644 --- a/config/discourse.config.sample +++ b/config/discourse.config.sample @@ -13,7 +13,6 @@ respawn limit 3 30 start on runlevel [2345] stop on runlevel [06] -env RUBY_GC_MALLOC_LIMIT=90000000 env RAILS_ROOT=/var/www/discourse env RAILS_ENV=production env NUM_WEBS=4 diff --git a/config/unicorn_upstart.conf b/config/unicorn_upstart.conf index 49cb2bb77..5f0e3c639 100644 --- a/config/unicorn_upstart.conf +++ b/config/unicorn_upstart.conf @@ -23,7 +23,6 @@ exec /bin/bash <<'EOT' # set HOME to the setuid user's home, there doesn't seem to be a better, portable way export HOME="$(eval echo ~$(id -un))" export RAILS_ENV=production - export RUBY_GC_MALLOC_LIMIT=90000000 cd /var/www/discourse diff --git a/script/bench.rb b/script/bench.rb index ea79eae9a..61a3857b8 100644 --- a/script/bench.rb +++ b/script/bench.rb @@ -111,7 +111,6 @@ discourse_env_vars = %w(DISCOURSE_DUMP_HEAP RUBY_GC_HEAP_INIT_SLOTS RUBY_GC_HEAP if @include_env puts "Running with tuned environment" - ENV["RUBY_GC_MALLOC_LIMIT"] = "50_000_000" discourse_env_vars - %w(RUBY_GC_MALLOC_LIMIT).each do |v| ENV.delete v end diff --git a/spec/models/admin_dashboard_data_spec.rb b/spec/models/admin_dashboard_data_spec.rb index 507518a36..eae7f6807 100644 --- a/spec/models/admin_dashboard_data_spec.rb +++ b/spec/models/admin_dashboard_data_spec.rb @@ -70,20 +70,6 @@ describe AdminDashboardData do end end - describe 'gc_checks' do - subject { described_class.new.gc_checks } - - it 'returns nil when gc params are set' do - ENV.stubs(:[]).with('RUBY_GC_MALLOC_LIMIT').returns(90000000) - expect(subject).to be_nil - end - - it 'returns a string when gc params are not set' do - ENV.stubs(:[]).with('RUBY_GC_MALLOC_LIMIT').returns(nil) - expect(subject).to_not be_nil - end - end - describe 'sidekiq_check' do subject { described_class.new.sidekiq_check }