Displaying 2 results from an estimated 2 matches for "clear_reloadable_connect".
2007 Jan 11
12
Rails not properly handling Oracle db connections/sesions in dev mode
We are running edge rails with oracle. After a few hundred requests
all available sesions are used up. It seems prior connections are
being left open. When this happens no one using the installation of
Oracle can create a new session until you kill your mongrel/webrick
server.
Patch #6928 addresses this problem, and i applied it to my vendor rails
and it worked.
I think, if possible, this
2010 Feb 25
0
How to use connection pool in Rails2.3.5 with WEBrick and MySQL?
...#L181
# http://github.com/rails/rails/blob/v2.3.5/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb#L246
but, Rack::Handler::WEBrick#service call body.close in ensure section
when return the HTTP response.
It call another method. after some call, it call
ConnectionPool#clear_reloadable_connections and clear its connection
pool.
# http://github.com/rails/rails/blob/v2.3.5/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb#L145
As a result, the connection was created by every request and spend
time for connection.
How to use connection pool?
--
You received...