开发者社区> 问答> 正文

同步过程中创建无数database connection

pool size设置为5, 但后台数据库出现过百连接;

otter communication pool size otter.communication.pool.size = 5

mysql 设置 +-----------------------------+----------+ | Variable_name | Value | +-----------------------------+----------+ | connect_timeout | 10 | | delayed_insert_timeout | 300 | | have_statement_timeout | YES | | innodb_flush_log_at_timeout | 1 | | innodb_lock_wait_timeout | 50 | | innodb_rollback_on_timeout | OFF | | interactive_timeout | 28800 | | lock_wait_timeout | 31536000 | | net_read_timeout | 120 | | net_write_timeout | 120 | | rpl_stop_slave_timeout | 31536000 | | slave_net_timeout | 60 | | wait_timeout | 28800 | +-----------------------------+----------+

原提问者GitHub用户 conglun

展开
收起
古拉古拉 2023-06-21 12:41:17 39 0
1 条回答
写回答
取消 提交回答
  • 这参数不是指数据库的链接池大小哦

    原回答者GitHub用户 agapple

    2023-06-21 13:05:02
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
GTD GLOBAL TERRORISM DATABASE 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载