coldfusion - 指定 JDBC 数据库驱动程序最大线程数

标签 coldfusion datasource

我有一个 ColdFusion 10 服务器。我正在使用 JDBC 驱动程序连接到 db2 数据库。我偶然发现了这个笔记。这个设置在哪里?我还查看了 neo*.xml 文件,但没有看到任何 db 驱动程序线程设置。我也不确定这是否特定于 ColdFusion 2016。我也在 ColdFusion 2018 管理员中寻找它,但没有运气。

ColdFusion Server takes the SQL content of the cfquery tag and passes it to the specified driver for the data source. The driver request is handled by a thread. By default, the ColdFusion Administrator is configured to limit the amount of active threads to 5.



https://helpx.adobe.com/coldfusion/kb/database-connections-handled-coldfusion.html

enter image description here

最佳答案

ColdFusion 管理员将最大连接数限制为 5,并且只有在您禁用“维护连接”时才会受到影响。

如果您想将默认事件连接数增加到 100,请启用“维护连接”并将“限制连接数”勾选为某个数字。

默认情况下,ColdFusion 不会在 neo-datasource.xml 上设置默认的最大连接属性。
请找到以下 2 个配置的 XML 配置。

<var name="myDataSource">
    ....
    <var name="pooling">
        <boolean value="true" />
    </var>
    ....
    <struct type="coldfusion.server.ConfigMap">
        <var name="MAXCONNECTIONS">
            <string>100</string>
        </var>
    </struct>
    ....
</var>

关于coldfusion - 指定 JDBC 数据库驱动程序最大线程数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59221432/

相关文章:

forms - 相当于结构值的 StructKeyList()

java - Spring Boot中的MySQL DataSource在其他Service/Control类中不可用并抛出空指针异常

c# - 如何从 List<> C# 在 DataGridView 中添加按钮?

java - 从 ColdFusion 启动测试 SMTP 服务器

coldfusion - 如何确定已安装的ColdFusion位数

coldfusion - 限制分页列表中的页数

oracle - 无法关闭来自 WebSphere 数据源的 Oracle 连接

Grails - 模式配置

php - cakephp 中未调用更新方法自定义数据源

coldfusion - 如何有条件地将参数传递给 CFC 的实例?