bjartek / computer-database-mongo

Computer-database example from play 2.0 distribution with mongo as persistence using salat
33 stars 8 forks source link

Mongo Connections not closed #3

Open ghost opened 12 years ago

ghost commented 12 years ago

Playing with the framework, I see that the connections are not closed:

Sun Apr 15 10:22:27 [initandlisten] connection accepted from 127.0.0.1:49508 #581 Sun Apr 15 10:22:27 [initandlisten] connection refused because too many open connections: 204

Isn't there a connection pool management ?

bjartek commented 12 years ago

I cannot help you here I am afraid. Ask around on the salat/casbah mailinglists perhaps? Feel free to use this repo as a proof of concept app.

What do you do to provoke this error?

ghost commented 12 years ago

How to provoke this error? I have coded in play framework for several hours, reload the page again and again. Apparently I reloaded at least 204 times.

With a small test code, you can provoke this error in some seconds.

ghost commented 12 years ago

This problem appeared already without providing a solution: https://groups.google.com/forum/#!msg/scala-salat/EEa7zwYotX4/mKhx36u-GoEJ