View Single Post
  #2  
Old 08-22-2009, 05:15 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,586
The DB connection must be closed after Rails application initialization bofore forking children process to serve requests.

Quote:
ActiveRecord::Base.clear_active_connections! if defined?(ActiveRecord::Base)
Works for MySQL, may have issue with oracle, so you may need to close it explicitly at the end of initialization code of your app.
Reply With Quote