Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Infrastructure, Web
-
Labels:None
Description
Rails 2.2.2 is now thread-safe, so one JRuby instance can process many HTTP requests concurrently. It avoids initializing 4 high memory consumer instances.
Do not forget to close connections :
class ApplicationController < ActionController::Base
after_filter :close_all_connections
# ...
private
def close_all_connections()
ActiveRecord::Base.clear_active_connections!
end
end
Issue Links
- duplicates
-
SONAR-727
Upgrade to Rails 2.2
-
http://www.trampolinesystems.com/blog/machines/2008/11/27/rails-22-jruby-jetty-win/