Hi - I’m looking for someone to point me in the right direction. Where
should I start with this issue?
I have a rails application running on a shared server. When I hit the
URL, if there are no instances of the dispatch.fcgi process running, it
takes a while to load the page (7-15 seconds). However, after that, once
the process is running, pages load normally (quickly). It is on this
initial startup of dispatch.fcgi that is slow.
When I run “ruby -d dispatch.fcgi” from the shell, I get a host of
warnings and exceptions printed out as it loads the page and prints it
to the screen. Can someone take a quick look and let me know where I
should start debugging these warnings / exceptions to get the page to
load quicker on the initial run?
THanks.
Output from dispatch.fcgi:
./…/config/…/vendor/rails/railties/lib/initializer.rb:241: warning:
&' interpreted as argument prefix ./../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:32: warning:
*’ interpreted as argument prefix
Exception LoadError' at /usr/local/lib/ruby/********/1.8/rubygems.rb:871 - no such file to load -- rubygems/defaults/operating_system Exception
LoadError’ at
/usr/local/lib/ruby//1.8/rubygems/config_file.rb:35 - no such
file to load – Win32API
Exception Gem::LoadError' at /usr/local/lib/ruby/********/1.8/rubygems.rb:636 - RubyGem version error: builder(2.0.0 not ~> 2.1.2) Exception
Gem::LoadError’ at
/usr/local/lib/ruby//1.8/rubygems.rb:636 - RubyGem version
error: xml-simple(1.0.9 not ~> 1.0.11)
Exception Gem::LoadError' at /usr/local/lib/ruby/********/1.8/rubygems.rb:636 - Could not find RubyGem memcache-client (~> 1.5.0) Exception
Gem::LoadError’ at
/usr/local/lib/ruby//1.8/rubygems.rb:636 - Could not find
RubyGem tzinfo (~> 0.3.8)
Exception LoadError' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:31 - no such file to load -- Win32API Exception
LoadError’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:38 - no such
file to load – Win32API
Exception MissingSourceFile' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:31 - no such file to load -- fast_xs Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:38 - no such
file to load – fast_xs
Exception MissingSourceFile' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:31 - no such file to load -- utf8proc_native Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:38 - no such
file to load – utf8proc_native
Exception `MissingSourceFile’ at
/home/content/********/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:512
- no such file to load – utf8proc_native
/home/content//vendor/rails/activerecord/lib/active_record/validations.rb:284:
warning:*' interpreted as argument prefix /home/content/********/vendor/rails/activerecord/lib/active_record/callbacks.rb:187: warning:
*’ interpreted as argument prefix
/home/content//vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:
warning: method redefined; discarding old allow_concurrency=
/home/content//vendor/rails/actionpack/lib/action_controller/routing/routing_ext.rb:3:
warning: method redefined; discarding old to_param
/home/content//vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:56:
warning: method redefined; discarding old recognize_path
/home/content//vendor/rails/actionpack/lib/action_view/template_finder.rb:94:
warning: method redefined; discarding old view_paths=
/home/content//vendor/rails/actionpack/lib/action_view/helpers/sanitize_helper.rb:108:
warning: ambiguous first argument; put parentheses or even spaces
ExceptionMissingSourceFile' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:31 - no such file to load -- redcloth Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:31 - no such
file to load – bluecloth
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:17: warning: method
redefined; discarding old []=
ExceptionMissingSourceFile' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:31 - no such file to load -- securerandom Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:38 - no such
file to load – securerandom
Exception `MissingSourceFile’ at
/home/content/********/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:512 - no such file to load – securerandom
/home/content//vendor/rails/actionpack/lib/action_controller/cgi_ext/session.rb:44:
warning: method redefined; discarding old create_new_id
/home/content//vendor/rails/actionpack/lib/action_controller/cgi_ext/session.rb:51:
warning: method redefined; discarding old initialize
ExceptionDRb::DRbServerNotFound' at /usr/local/lib/ruby/1.8/drb/drb.rb:1647 - DRb::DRbServerNotFound /home/content/********/vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:186: warning: method redefined; discarding old connection Exception
Gem::LoadError’ at
/usr/local/lib/ruby//1.8/rubygems.rb:636 - Could not find
RubyGem tmail (~> 1.2.3)
ExceptionGem::LoadError' at /usr/local/lib/ruby/********/1.8/rubygems.rb:636 - Could not find RubyGem text-format (>= 0.6.3) Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:31 - no such
file to load – tmail/tmailscanner
ExceptionMissingSourceFile' at /usr/local/lib/ruby/********/1.8/rubygems/custom_require.rb:38 - no such file to load -- tmail/tmailscanner Exception
MissingSourceFile’ at
/home/content/********/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:512 - no such file to load – tmail/tmailscanner
/home/content//vendor/rails/actionmailer/lib/action_mailer/base.rb:428:
warning: method redefined; discarding old template_root=
ExceptionGem::LoadError' at /usr/local/lib/ruby/********/1.8/rubygems.rb:636 - Could not find RubyGem activerecord-mysql-adapter (>= 0) /home/content/********/vendor/rails/actionpack/lib/action_controller/base.rb:427: warning: instance variable @view_paths not initialized /home/content/********/vendor/rails/activerecord/lib/active_record/observer.rb:35: warning: instance variable @observers not initialized /home/content/********/vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:241: warning: instance variable @routes_last_modified not initialized /home/content/********/vendor/rails/activerecord/lib/active_record/observer.rb:35: warning: instance variable @observers not initialized Exception
MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:31 - no such
file to load – fcgi
/home/content//vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized
/home/content//vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized
/home/content//vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized
/home/content//vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized
Exception `MissingSourceFile’ at
/usr/local/lib/ruby//1.8/rubygems/custom_require.rb:31 - no such
file to load – mysql
/home/content//vendor/rails/actionpack/lib/action_controller/session/active_record_store.rb:112:
warning: redefine find_by_session_id
/usr/local/lib/ruby/1.8/cgi/session.rb:304: warning: instance variable
@data not initialized
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:18: warning: instance
variable @write_lock not initialized
/home/content//vendor/rails/actionpack/lib/action_view/base.rb:298:
warning: instance variable @template_format not initialized
/home/content//vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized
/home/content/********/vendor/rails/actionpack/lib/action_controller/base.rb:427:
warning: instance variable @view_paths not initialized