title: mongoDB, passenger and performance issues with phusion passenger
body: <p>i just stumbled across a posing on the mongodb-user list where there was a discussion about passenger and forking when using mongoDB with MongoMapper.</p>
  
  <blockquote>
    <p>I just wanted to remind that Rails developers need to tweak their
    'environment.rb' if they use MongoDB with Passenger.</p>
    
    <p>By default, Passenger spawns Ruby processes with fork(). And, as fork
    () shares file descriptors, the Rails app has to reopen the connection
    to MongoDB in the fresh new "process". </p>
  </blockquote>
  
  <p><a href="http://groups.google.com/group/mongodb-user/browse_thread/thread/f31e2d23de38136a" rel="nofollow noreferrer">http://groups.google.com/group/mongodb-user/browse_thread/thread/f31e2d23de38136a</a></p>
  
  <p>anyone knows if there are still issues with mongoDB and passenger or what is the best way to serve a mongoDB-rails-application with passenger?</p>