धीमी गति से देखने के कारण का निदान करना


80

मुझे यकीन नहीं है कि यह कब शुरू हुआ, लेकिन मेरे ऐप में कुछ असामान्य हो रहा है (स्थानीय रूप से विकास मशीन पर चलाएं)। अचानक मुझे संदेश दिखाई दे रहे हैं जैसे:

Started GET "/" for 127.0.0.1 at 2013-03-10 12:10:24 +1300
Processing by PagesController#home as HTML
  Rendered pages/home.html.erb within layouts/application (2.4ms)
Completed 200 OK in 3242ms (Views: 3241.4ms | ActiveRecord: 0.0ms)

जैसा कि आप होम पेज (एक अपेक्षाकृत सरल पृष्ठ) लोड करने के लिए 3 सेकंड देख सकते हैं ... हम एक कठिन पृष्ठ पुनः लोड नहीं कर रहे हैं .. बस दूसरे पृष्ठ से फिर से "होम" लिंक पर क्लिक कर रहे हैं।

वास्तव में यकीन नहीं है कि यहाँ कहाँ शुरू किया जाए, लेकिन यह मेरा application.rb है:

#config/boot.rb is loaded
require File.expand_path('../boot', __FILE__)

require 'rails/all'

if defined?(Bundler)
  Bundler.require(*Rails.groups(:assets => %w(development test)))
end

module Goodsounds
  class Application < Rails::Application
    config.encoding = "utf-8"
    config.filter_parameters += [:password]
    config.assets.initialize_on_precompile = false
    config.assets.enabled = true
    config.action_controller.assets_dir = "#{File.dirname(File.dirname(__FILE__))}/public"
    config.assets.version = '1.0'
    config.autoload_paths += Dir["#{Rails.root}/lib/modules"]
    config.assets.paths += Dir["#{Rails.root}/app/assets/fonts/*"]
    config.assets.precompile += %w( .svg .eot .woff .ttf ) 
  end
end

... और dev.rb:

Goodsounds::Application.configure do
  # Settings specified here will take precedence over those in config/application.rb
    Paperclip.options[:command_path] = "/usr/bin/"

    config.action_mailer.default_url_options = { :host => 'localhost:3000' }

  config.action_mailer.raise_delivery_errors = true

  # set delivery method to :smtp, :sendmail or :test
  config.action_mailer.delivery_method = :smtp

  # these options are only needed if you choose smtp delivery

  config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }

  # In the development environment your application's code is reloaded on
  # every request. This slows down response time but is perfect for development
  # since you don't have to restart the web server when you make code changes.
  config.cache_classes = false

  # Log error messages when you accidentally call methods on nil.
  config.whiny_nils = true

  # Show full error reports and disable caching
  config.consider_all_requests_local       = true
  config.action_controller.perform_caching = false

  # Print deprecation notices to the Rails logger
  config.active_support.deprecation = :log

  # Only use best-standards-support built into browsers
  config.action_dispatch.best_standards_support = :builtin

  # Raise exception on mass assignment protection for Active Record models
  config.active_re
cord.mass_assignment_sanitizer = :strict

  # Log the query plan for queries taking more than this (works
  # with SQLite, MySQL, and PostgreSQL)
  config.active_record.auto_explain_threshold_in_seconds = 0.5

  # Do not compress assets
  config.assets.compress = false

  # Expands the lines which load the assets
  config.assets.debug = true
end

संपादित करें:

ठीक है, यहाँ वही है जो मैं नए अवशेष पर देख रहा हूं। हालांकि वास्तव में मेरी मदद नहीं करता है। कोई विचार?

यहाँ छवि विवरण दर्ज करें

यहाँ छवि विवरण दर्ज करें

ओह और मैंने क्रोम टाइमलाइन से क्या सीखा:

Send Request - Details
Duration    0 (at 655 ms)
Resource    localhost
Request Method  GET

Receive Response - Details
Duration    0.043ms (at 4.17 s)
Resource    localhost
Status Code 200
MIME Type   text/html

Receive Data - Details
Duration    176.329ms (at 4.17 s)
Self Time   7.037ms
CPU Time    176.329ms
Aggregated Time 061.194ms114.664ms0.471ms0
Resource    localhost
Encoded Data Length 303 Bytes
Used Heap Size  29.1MB (+5.7 MB)

Finish Loading - Details
Duration    0 (at 4.35 s)
Resource    localhost

वैसे मैंने शांत_सैट्स मणि को निष्क्रिय कर दिया, यह देखने के लिए कि मैं टर्मिनल में क्या खोज सकता हूं .. फिर से .. उपयोगी नहीं:

Started GET "/" for 127.0.0.1 at 2013-03-10 21:46:40 +1300
Processing by PagesController#home as HTML
  Rendered pages/home.html.erb within layouts/application (43.4ms)
Completed 200 OK in 3501ms (Views: 3480.9ms | ActiveRecord: 19.4ms)


Started GET "/assets/dataTables/jquery.dataTables.bootstrap.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.bootstrap.css - 304 Not Modified (11ms)


Started GET "/assets/chosen.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen.css - 304 Not Modified (5ms)


Started GET "/assets/select2.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /select2.css - 304 Not Modified (4ms)


Started GET "/assets/autocomplete.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /autocomplete.css - 304 Not Modified (1ms)


Started GET "/assets/branches.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /branches.css - 304 Not Modified (2ms)


Started GET "/assets/bubbles.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bubbles.css - 304 Not Modified (1ms)


Started GET "/assets/business_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /business_show.css - 304 Not Modified (1ms)


Started GET "/assets/chunkyfive_font.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chunkyfive_font.css - 304 Not Modified (1ms)


Started GET "/assets/consumer_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /consumer_show.css - 304 Not Modified (2ms)


Started GET "/assets/datatable_styling.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /datatable_styling.css - 304 Not Modified (1ms)


Started GET "/assets/datepicker.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /datepicker.css - 304 Not Modified (2ms)


Started GET "/assets/devise_links.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /devise_links.css - 304 Not Modified (1ms)


Started GET "/assets/dispenser_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dispenser_show.css - 304 Not Modified (1ms)


Started GET "/assets/fonts.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /fonts.css - 304 Not Modified (1ms)


Started GET "/assets/forms.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /forms.css - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails.css - 304 Not Modified (1ms)


Started GET "/assets/jquery-ui-1.10.0.custom.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery-ui-1.10.0.custom.css - 304 Not Modified (2ms)


Started GET "/assets/jumbotrons.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jumbotrons.css - 304 Not Modified (1ms)


Started GET "/assets/layout.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /layout.css - 304 Not Modified (1ms)


Started GET "/assets/open_sans.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /open_sans.css - 304 Not Modified (2ms)


Started GET "/assets/popover.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /popover.css - 304 Not Modified (1ms)


Started GET "/assets/reviews.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /reviews.css - 304 Not Modified (1ms)


Started GET "/assets/spinner.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /spinner.css - 304 Not Modified (2ms)


Started GET "/assets/style_show.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /style_show.css - 304 Not Modified (2ms)


Started GET "/assets/style_show_reviews.css?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /style_show_reviews.css - 304 Not Modified (2ms)


Started GET "/assets/jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery.js - 304 Not Modified (3ms)


Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jquery_ujs.js - 304 Not Modified (3ms)


Started GET "/assets/ui.custom.min.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /ui.custom.min.js - 304 Not Modified (1ms)


Started GET "/assets/bootstrap-transition.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-transition.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-affix.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-affix.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-alert.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-alert.js - 304 Not Modified (4ms)


Started GET "/assets/bootstrap-button.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-button.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-carousel.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-carousel.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-collapse.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-collapse.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-dropdown.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-dropdown.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-modal.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-modal.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-scrollspy.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-scrollspy.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-tab.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-tab.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap-tooltip.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-tooltip.js - 304 Not Modified (5ms)


Started GET "/assets/bootstrap-popover.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-popover.js - 304 Not Modified (52ms)


Started GET "/assets/bootstrap-typeahead.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap-typeahead.js - 304 Not Modified (3ms)


Started GET "/assets/bootstrap.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /bootstrap.js - 304 Not Modified (13ms)


Started GET "/assets/gmaps4rails/gmaps4rails.base.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.base.js - 304 Not Modified (1ms)


Started GET "/assets/gmaps4rails/gmaps4rails.bing.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.bing.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.googlemaps.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.googlemaps.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.mapquest.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.mapquest.js - 304 Not Modified (2ms)


Started GET "/assets/gmaps4rails/gmaps4rails.openlayers.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /gmaps4rails/gmaps4rails.openlayers.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/addresspicker.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/addresspicker.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/browser_detect.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/browser_detect.js - 304 Not Modified (3ms)


Started GET "/assets/jqueryplugins/charts.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/charts.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/jquery.alphanumeric.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.alphanumeric.js - 304 Not Modified (1ms)


Started GET "/assets/jqueryplugins/jquery.formrestrict.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.formrestrict.js - 304 Not Modified (2ms)


Started GET "/assets/jqueryplugins/jquery.lazyload.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/jquery.lazyload.js - 304 Not Modified (1ms)


Started GET "/assets/jqueryplugins/raty.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /jqueryplugins/raty.js - 304 Not Modified (2ms)


Started GET "/assets/dataTables/jquery.dataTables.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.js - 304 Not Modified (13ms)


Started GET "/assets/dataTables/jquery.dataTables.bootstrap.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /dataTables/jquery.dataTables.bootstrap.js - 304 Not Modified (63ms)


Started GET "/assets/lib/abstract-chosen.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /lib/abstract-chosen.js - 304 Not Modified (12ms)


Started GET "/assets/lib/select-parser.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /lib/select-parser.js - 304 Not Modified (12ms)


Started GET "/assets/chosen.jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen.jquery.js - 304 Not Modified (8ms)


Started GET "/assets/chosen-jquery.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /chosen-jquery.js - 304 Not Modified (9ms)


Started GET "/assets/select2.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /select2.js - 304 Not Modified (7ms)


Started GET "/assets/highcharts.js?body=1" for 127.0.0.1 at 2013-03-10 21:46:44 +1300
Served asset /highcharts.js - 304 Not Modified (1ms)

वैसे, reddit पर एक सुझाव के अनुसार मैंने संपत्तियां तैयार कीं और सर्वर को चलाया। शानदार गति देखकर:

Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (1.1ms)
Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)

ठीक है यकीन नहीं कि यह कोई मदद दे रहा है या नहीं, लेकिन बड़ी देरी इन दो लाइनों के बीच स्टैक में हो रही है:

From: /home/funkdified/.rvm/gems/ruby-1.9.3-p392@goodsounds/gems/actionpack-3.2.13.rc1/lib/action_controller/metal/implicit_render.rb @ line 5 ActionController::ImplicitRender#send_action:

    3: def send_action(method, *args)
    4:   ret = super
 => 5:   default_render unless response_body
    6:   ret
    7: end

[2] pry(#<PagesController>)> next

मुख्य DELAY

From: /home/funkdified/.rvm/gems/ruby-1.9.3-p392@goodsounds/gems/actionpack-3.2.13.rc1/lib/action_controller/metal/implicit_render.rb @ line 6 ActionController::ImplicitRender#send_action:

    3: def send_action(method, *args)
    4:   ret = super
    5:   default_render unless response_body
 => 6:   ret
    7: end

यहाँ केवल एक अनुमान है, लेकिन शायद आप जावास्क्रिप्ट या सीएसएस के लोड को लोड कर रहे हैं जो मुझे दिखाई दे रहा है। कोई भी मौका जिससे आप अपने घर के दृश्य और लेआउट या कम से कम स्निपेट्स साझा कर सकें, जहां आपको लगता है कि समस्या है?
foklepoint

क्या आप html की अधिक मात्रा उत्पन्न कर रहे हैं? देखें समय पृष्ठ के आकार में द्विघात हुआ करता था। आंशिक पृष्ठ वाले स्ट्रिंग को प्रत्येक टेम्पलेट के दौरान व्यू टेम्प्लेट का मूल्यांकन करते समय कॉपी किया गया था।
जोशुआनापोली

नहीं, बहुत कुछ नहीं है। शायद html की 200 लाइनें? मैं आपके लिए आकार कैसे निर्धारित कर सकता हूं।
अब्राम

भेजने के अनुरोध और प्रतिक्रिया प्राप्त करने के बीच एक बड़ा अंतर है, लेकिन दुर्भाग्य से क्रोम टाइमलाइन और न्यू रेलिक ने मुझे नहीं बताया कि यह क्या कारण है .. क्या सर्वर को अधिक विवरण देने के लिए मजबूर करने का एक तरीका है?
अब्राम

हम्म, क्या आपने "mysite.local" बनाम "mysite.localhost" जैसे / etc / host में कुछ परिभाषित किया है? जब मैं विकसित होता हूं तो मैं आमतौर पर बाद को परिभाषित करता हूं। किसी कारण से हाल ही में मैंने एक ऐप को "mysite.local" के रूप में चलाने का फैसला किया, और इसमें प्रति पृष्ठ लोड में 3-5 सेकंड का समय लगा। वापस "mysite.localhost" में बदल गया और यह वापस सामान्य, सेकंड के अंशों को लोड करने के लिए वापस चला गया।
जम्मिंगर

जवाबों:


121

ठीक है, मुझे यह पता चला (लंबे समय तक)। अपनी किसी भी वास्तविक संपत्ति को बदलने के बिना मैं देख रहा हूं कि यह विकास है:

Started GET "/" for 127.0.0.1 at 2013-03-11 23:14:33 +1300
Processing by PagesController#home as HTML
Rendered pages/home.html.erb within layouts/application (1.3ms)

यह पता चला है कि देरी config.assets.debug = trueविकास के कारण हो रही थी । falseसमस्या का समाधान करने के लिए इसे सेट करना ।

लगता है कि रेल कोर टीम ने डिफ़ॉल्ट रूप से इसे बंद करने पर बहस की , लेकिन विचार के खिलाफ फैसला किया। भविष्य में मैं उन्हें विकास के टिप्पणी अनुभाग में कुछ देखना पसंद करूंगा। महत्वपूर्ण देरी के लिए उपयोगकर्ताओं को टिप देने के लिए।

क्या मैं निम्नलिखित सुझाव दे सकता हूं:

# Expands the lines which load the assets 
# May cause significant delays in view rendering

महान, उन्होंने मुझे गुनगुन और अद्यतन रेल सुनाई !


1
यदि यह आपकी परियोजना के लिए उपयुक्त है, तो आप टर्बोलिंक्स ( github.com/rails/turbolinks ) का उपयोग करने पर विचार कर सकते हैं । यह समस्या को कम कर सकता है क्योंकि संपत्ति केवल पहले पृष्ठ लोड पर लोड की जाएगी और आप परिसंपत्तियों के डिबगिंग का लाभ रखेंगे।
ybart

2
इससे निश्चित रूप से मदद मिली। एक छोटा सा सुधार हालांकि: समस्या वास्तव में 'config.assets.debug = true' के कारण होती है और इसे झूठे फिक्स में बदल देती है।
केन फेहलिंग

1
@Abram साझा करने के लिए धन्यवाद। इस बारे में थोड़ी देर के लिए मेरे सिर को खरोंच दिया।
एंडर्स

1
धन्यवाद अबराम। मुझे लगभग 6 महीने तक यह समस्या थी ... :)
yaru

1
यह मेरा सटीक मुद्दा था - CKE मेरे प्रतिपादन को मार रहा था। पहले पृष्ठ लोड पर 60 + सेकंड। ऐसा आसान तय है।
डीएनथ्रूप

34

यही समस्या मेरे लिए 4.1+ रेल में दिखाई दी है। अब्राम का उत्तर केवल आंशिक रूप से पूर्ण है।

आप छोड़ सकते हैं config.assets.debug = trueलेकिन नई संपत्ति सत्यापन सुविधा को अक्षम करना चाहिए

# Adds additional error checking when serving assets at runtime.
# Checks for improperly declared sprockets dependencies.
# Raises helpful error messages.
config.assets.raise_runtime_errors = false

config.assets.debugविकलांगों के साथ समाधान केवल इसलिए काम करता है क्योंकि यह संपत्ति को एक बार संकलित करता है और संपत्ति एक बार सत्यापित होती है। आस्तियों का सत्यापन वह स्थान है जहाँ सबसे अधिक समय व्यतीत होता है।


antulik, क्या आप इस मुद्दे को छोड़ सकते हैं? मैंने आपके समाधान की कोशिश की, लेकिन मेरी मदद नहीं की। मेरा ऐप तेज़ हुआ करता था लेकिन हाल ही में यह विकास में सुपर स्लो हो गया। कभी-कभी प्रतिक्रिया प्राप्त करने के लिए यह 5-6 सेकंड तक चला जाता है। समय का 90% से अधिक एप्लिकेशन / लेआउट प्रदान कर रहा है। stackoverflow.com/questions/35006964/weird-logs-in-rails4
सीन

ओह मैंने इसे ऊपर के समाधान के साथ हल किया। आपका काम नहीं किया लेकिन पता नहीं क्यों। मैं यहाँ एक सवाल है, हालांकि। मेरे देव env प्रतिक्रिया बहुत तेजी से किया गया था और अचानक कुछ दिनों पहले सुपर धीमी हो गई। Config.assets.debug को गलत पर सेट करने से मेरी समस्या हल हो गई, लेकिन क्या आप अनुमान लगा सकते हैं कि यह समस्या इतनी अचानक क्यों विकसित हुई? मुझे लगता है कि यह एक धीमी प्रक्रिया होनी चाहिए ताकि संक्रमण के बिना इस समस्या का होना मुझे लगता है कि मैंने अपने कोड में कुछ डाला है।
सीन

8

यदि आप रेलगाड़ी 3.2.13 से आ रहे हैं तो ध्यान दें कि लोगों के एक समूह ने इस मुद्दे का अनुभव किया है और 3.2.12 के लिए इसे हल करना प्रतीत होता है। आप अधिक जानकारी यहाँ github पर पा सकते हैं ।

मेरे मामले में config.assets.debug, थोड़ी सी भी चीज़ों को निष्क्रिय करने में , लेकिन 3.2.12 पर वापस जाने का अनुरोध समय 4 सेकंड से लगभग 250 मी।


धन्यवाद! मेरे 0.2s पेज के अनुरोधों ने 3.2.13 के साथ 15 के लिए छलांग लगाई।
तुरादग

यह रेल 3.2.14
पुराने प्रो

2

NewRelic.com पर एक नज़र डालें - इसमें खर्च होता है, लेकिन नि: शुल्क परीक्षण आपको अपने आवेदन को पूरी तरह से विघटित करने और किसी भी अड़चन के कारण बाहर काम करने की अनुमति देगा।

नई रेलिक के अलावा सामान्य चेक के माध्यम से चलाते हैं, जैसे कि यह कब शुरू हुआ? आपने हाल ही में क्या बदला है? क्या आपने रेल और / या किसी रत्न को उन्नत किया है? अपने स्रोत नियंत्रण से कुछ पिछले संस्करणों को देखें और चलाएँ और विशेष रूप से इस समस्या का कारण बनने के लिए प्रयास करें।

क्या समस्या सभी ब्राउज़रों के साथ होती है? Chrome टाइमलाइन व्यूअर को फायर करने का प्रयास करें और आप यह देख पाएंगे कि ब्राउज़र जावास्क्रिप्ट के किसी विशेष टुकड़े पर अटक रहा है या नहीं।

इसके अलावा अपने स्थानीय देव वेब सर्वर को पतले करने की कोशिश करें, क्या समस्या बनी रहती है?

सौभाग्य!


दुर्भाग्य से मैंने कुछ चीजें बदल दी हैं और काम को एक नए लैपटॉप में स्थानांतरित कर दिया है .. इसलिए, कुछ चीजें हो सकती हैं .. लैपटॉप के उन्नयन पर संदेह करते हुए इसे किया। अगर यह एक मणि की बात है, तो मैं आपको एक टिक के साथ वापस मिलूंगा, लेकिन अब मैं इस सवाल को बंद नहीं करूंगा क्योंकि कोई भी मेरी स्थिति पर प्रकाश डाल सकता है।
अब्राम

1
आप किस संस्करण का उपयोग कर रहे हैं? क्या आपने अपने स्थानीय देव वेब सर्वर के रूप में पतले का उपयोग करने की कोशिश की है? क्या आप स्रोत नियंत्रण का उपयोग कर रहे हैं?
डेवस्टेफेन्स

हाय रेल 3.2.13.rc1 ... रूबी 1.9.3 p392 ... मैं पतले का उपयोग कर रहा हूं। हां मैं बिटकॉइन के साथ गिट का उपयोग कर रहा हूं।
अब्राम

ठीक है, मैंने 3.2.13.rc1 का उपयोग नहीं किया है, लेकिन यह रिलीज़ उम्मीदवार है, इसलिए यह सुनिश्चित करने के लिए अंतिम उत्पादन रिलीज़ संस्करण (3.2.12) पर स्विच करें कि ऐसा नहीं है। क्या आपने अपने प्रतिबद्ध इतिहास के माध्यम से यह देखने के लिए कि यह मुद्दा कब शुरू हुआ है? एक बात जो मैं ऊपर आपकी संपत्ति सूची में देख रहा हूँ, वह यह है कि आपके पास बहुत सारा सामान है जिसमें आप उपयोग नहीं कर रहे हैं, आपको संभवतः इसे साफ करना चाहिए (यानी आप सभी gmaps4rails CSS को लोड कर रहे हैं जब आपको केवल एक की आवश्यकता होती है, और आप दिखाई देते हैं चुना गया है। दो बार के साथ कुछ कर)।
डेवस्टेफेंस

अरे मैं वास्तव में यहाँ आपकी मदद की सराहना करता हूँ। मैं कल रात फिर से इस पर एक नज़र डालूंगा क्योंकि आपने दो अच्छे सुझाव दिए हैं। बहुत बहुत धन्यवाद और आपको वापस मिल जाएगा।
अब्राम

1

क्या आप OSX पर हैं और .local के माध्यम से सेवा कर रहे हैं?

यदि हां, तो मुझे अपनी टिप्पणी में मिली पोस्ट को एक समाधान के रूप में फेंकना चाहिए:
उपडोमेन बाधा (रेल 3) स्थानीय सर्वर (पतली) एसओ धीमी बनाता है


लिनक्स मिंट (उबंटू पर आधारित) का उपयोग करके कोई खेद नहीं
अब्राम
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.