Java 使用控制台更改连接池

Java 使用控制台更改连接池,java,mongodb,console,Java,Mongodb,Console,我在一个Java项目中使用MongoDB,我有一个问题要问你: 如何使用mongodb控制台更改连接池?我在mongodb Google Group上回答了这个问题,我将在这里重新引用: You can control how many connections there are with the [MongoOptions class][1]: The connection pool is controlled in the driver configuration, not through

我在一个Java项目中使用MongoDB,我有一个问题要问你:


如何使用mongodb控制台更改连接池?

我在mongodb Google Group上回答了这个问题,我将在这里重新引用:

You can control how many connections there are with the [MongoOptions class][1]:

The connection pool is controlled in the driver configuration, not through the mongo shell.

在控制台中更改连接池的用例是什么?为什么要这样?所谓“连接池”,是指客户端Java连接池吗?“控制台”是指mongo shell吗?是的,它是mongo的客户端Java连接池shell@sdlfkjdlsfj:您可以在Java项目()中更改Java项目的连接池。连接池是语言驱动程序(本例中为Java)的一项功能,而不是MongoDB服务器。