为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
【DM版本】:
【操作系统】:
【CPU】:
【问题描述】*:
数据量小应用也能正常调用执行,数据量大就报通信异常,但执行时间都很短,不到0.5s,应用所用驱动就是对应数据库的,版本匹配。连接池配置如下
scoettimeout ,connecttimeout 两个参数也配置了
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.16
Created-By: 11.0.13+8 (Eclipse Adoptium)
Implementation-Vendor: DAMENG
Implementation-Title: Dameng JDBC driver classes for use with JDK1.8
Implementation-Version: - 8.1.3.140 - Production
Driver-name: dm.jdbc.driver.DmDriver
Build-Time: 2024.03.20
Main-Class: dm.jdbc.driver.DmDriver
Premain-Class: dm.jdbc.stat.support.WebServer
Svn-Revision: 23562
Branch-Id:
应用报错如下
新文件 7.txt
根据某开发商兄弟反馈,druid配置中的db-type不要设置为dm,设置为MySQL或者Oracle即可解决
(1)怀疑是因为超时,连接池断开连接导致的。尝试增大连接超时参数,如:connectTimeout: 1200000和socketTimeout: 1200000。
(2)数据量大时,可能存在慢sql,可以尝试更新下统计信息:数据库中执行DBMS_STATS.GATHER_SCHEMA_STATS('模式名',100,TRUE,'FOR ALL COLUMNS SIZE AUTO');