Last active
December 16, 2015 08:19
-
-
Save Jell/5404733 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
at_exit do | |
ActiveRecord::Base.clear_all_connections! | |
java.lang.Thread.all_stack_traces.key_set.each do |t| | |
t.synchronized do | |
if t.name.include?("Abandoned connection cleanup thread") | |
t.class.shutdown | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment