greenlaw110/play-morphia — Issue #60: MongoOptons.connectionsPerHost
Author: marcuspocus
Created: 2012-01-03 22:28:17+00:00
State: open

Is there a way using morphia for Playframework to set this options (MongoOptons.connectionsPerHost) to something more than the default 10?

I'm getting lots of "Out of semaphores to get db connection" =>

play.exceptions.JavaExecutionException: Out of semaphores to get db connection
at play.mvc.ActionInvoker.invoke(ActionInvoker.java:231)
at Invocation.HTTP Request(Play!)
Caused by: com.mongodb.DBPortPool$SemaphoresOut: Out of semaphores to get db connection
at com.mongodb.DBPortPool.get(DBPortPool.java:176)
at com.mongodb.DBTCPConnector$MyPort.get(DBTCPConnector.java:342)
at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:196)
at com.mongodb.DBApiLayer$MyCollection.__find(DBApiLayer.java:303)
at com.mongodb.DBCursor._check(DBCursor.java:360)
at com.mongodb.DBCursor._hasNext(DBCursor.java:490)
at com.mongodb.DBCursor.hasNext(DBCursor.java:515)
at com.google.code.morphia.query.MorphiaIterator.hasNext(MorphiaIterator.java:40)
at com.google.code.morphia.query.QueryImpl.get(QueryImpl.java:365)
at play.modules.morphia.Model$MorphiaQuery.get(Model.java:1049)