gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 00:52:43 28 4
gpt4 key购买 nike

我有一个 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com