com.mongodb.DBPortPool$SemaphoresOut: Out of semaphores to get db connection

来源:互联网 发布:python 时间戳转毫秒 编辑:程序博客网 时间:2024/05/29 06:46
解决com.mongodb.DBPortPool$SemaphoresOut: Out of semaphores to get db connection错误 Mongo reader = null;MongoOptions op = new MongoOptions();//处理 Out of semaphores to get db connectionop.setConnectionsPerHost(200);op.setThreadsAllowedToBlockForConnectionMultiplier(50);reader = new Mongo(DBConfig.getValue("mongoReadIp")+":27017",op); reader.slaveOk();
0 0