31K failed stat64's when viewing a simple (no db) rhtml page?

I'm trying to help the sys admins of my server figure out what is up with our Rails installation (debian sarge - completely up to date). Hitting a simple page yields 31,000 failed stat64's and takes anywhere from 8 - 44 seconds. They #! for ruby is correct everywhere, but it's like it can't find Rails. These are box stock standard installs.

Here's what we're seeing when we trace the process:

stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionpack/lib/action_view/helpers/../../action_controller/vendor/html-scanner/soap/ encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionpack/lib/action_view/vendor/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionpack/lib/action_view/vendor/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/vendor/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/vendor/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/../../activesupport/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../test/mocks/development/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../test/mocks/development/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/controllers/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/controllers/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/models/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/models/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/controllers/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/controllers/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/helpers/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../app/helpers/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../components/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../components/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../config/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../config/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/railties/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/railties/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/railties/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/railties/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionpack/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionpack/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activesupport/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activesupport/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/activerecord/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionmailer/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionmailer/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionwebservice/lib/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/www/mysite/docroot/rails/../config/../vendor/rails/actionwebservice/lib/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/1.8/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/1.8/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/1.8/i386-linux/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/1.8/i386-linux/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/soap/encodingstyle/handler.rb", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/local/lib/site_ruby/soap/encodingstyle/handler.so", 0xbffe2b10) = -1 ENOENT (No such file or directory) stat64("/usr/lib/ruby/1.8/soap/encodingstyle/handler.rb", {st_mode=S_IFREG|0644, st_size=1997, ...}) = 0 open("/usr/lib/ruby/1.8/soap/encodingstyle/handler.rb", O_RDONLY|O_LARGEFILE) = 4

Applogies for the long message, just wanted to show the entire trail.

Any pointers would be appreciated.

Thanks, Tom

A couple more things. The server is running Apache 1.3 without fcgi, as I’m hoping to do some dev in the environment that will eventually house this app.

-Tom