标题: Too many threads are already waiting for a connection [打印本页] 作者: 清泛网 时间: 2015-04-22 16:41 标题: Too many threads are already waiting for a connection 由于工作线程数大于MongoDB的最大连接池数量,从而出现此类异常。
解决方法:
一、减少工作线程数,示意代码如下:
ParallelOptions parallelOption = new ParallelOptions();