This project is archived and is in readonly mode.
Connection pool creating a new connection for every http request
-
Zyclops
I can confirm that this is the case under OSX with MySQL under ruby 1.8.6. Too me it looks like the variable that contains a list of the connections isn't maintaining state between requests.
-
Pratik
- Milestone cleared.
-
Zyclops
This only happens in development mode (thanks lifo) and is to do with class reloading.
In production it works fine.
In development mode it is an issue since under oracle it causes hundreds of connections to rack up and eventually locks up the database (MySQL is nice since it does some housekeeping and cleans up the connections).
-
Pratik
- Assigned user set to Pratik
-
Repository
- State changed from new to resolved
(from [d20955f889223b6035dbc7d61acba9091bf7b7ed]) Don't leave open dangling connections in development mode. [#1335 state:resolved] http://github.com/rails/rails/co...
-
thrillhouse
That's fixed it. Well done and thanks for your work guys.