어떤 이유인지 내 ::Application#call
은 매우 느립니다. New Relic의 계측에 따르면 한 케이스에서는 3,840ms
이 걸렸습니다. 그것은 심지어 ActionDispatch::Routing::RouteSet#call
에 도착 혼자 컨트롤러의 방법을 수 있도록 5 초 이상 소요 Implements call according to the Rack API. It simply dispatches the request to the underlying middleware stack.
Application # 호출이 느린 이유는 무엇입니까?
:
문서는 것처럼이 방법을 설명합니다.
왜 이렇게 느릴 수 있습니까? 그리고 이것을 더 깊이 파고 들기 위해 어디에서 악기를 사용해 볼 수 있을까요? 내 미들웨어의
없음, 특히 홀수로 보지 중 하나
use Raven::Rack
use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x007fd836083e08>
use Rack::Runtime
use ActionDispatch::RequestId
use Rails::Rack::Logger
use Rack::Cors
use ActionDispatch::ShowExceptions
use ActionDispatch::DebugExceptions
use ActionDispatch::RemoteIp
use ActionDispatch::Callbacks
use ActiveRecord::ConnectionAdapters::ConnectionManagement
use ActiveRecord::QueryCache
use ActionDispatch::ParamsParser
use Clearance::RackSession
use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
use ActionDispatch::Flash
use Rack::SslEnforcer
run CookacademyApi::Application.routes
New Relic에서 미들웨어 계측을 확인 했습니까? 앱 호출과 경로 호출 사이에 속도가 느린 경우 미들웨어 일 수 있습니다. 미들웨어 스택에 무엇이 있는지 보려면'rake middleware'를 실행하십시오. – fivedigit
@fivedigit middelware 계측기가 제게 많은 것을 보여주지 못합니다 : http://cl.ly/image/1B3P143p2g3K –
@JoshSmith 해결책을 찾았습니까? 나는 또한 같은 문제에 직면하고있다 –