Closed GoogleCodeExporter closed 9 years ago
This error is a threading/contention issue and not related to Morphia. It just
comes from the driver. If you have more worker threads than the number of
sockets then you will have high contention and you can get errors like this.
Original comment by scotthernandez
on 21 Apr 2011 at 11:49
ok this makes sense. i didnt know it was something in the driver. i thought it
was how morphia used the driver. i guess the authors of the driver would never
open up the connection pooling api for any special features.
i guess if we need more concurrency, we can add additional mongo objects (pools)
thanks.
Original comment by s...@frequency.com
on 22 Apr 2011 at 12:03
I guess I should ask, were you able to reproduce this *not* under load, or with
multiple threads?
You can increase the size of the pool by using the MongoOptions to set the
connectionsPerHost higher.
The driver is open source and patches are accepted, sometimes :)
Original comment by scotthernandez
on 22 Apr 2011 at 12:12
Original issue reported on code.google.com by
s...@frequency.com
on 21 Apr 2011 at 9:43