发现程序中有个批量update语句需要update 16000多条数据导致超时

 

2019-11-06 10:35:28.312 pool-9-thread-24 ERROR com.hp.nova.common.tasksync.tcscheduler.TcFileProcessScheduleJob.fileProcessCronJob(TcFileProcessScheduleJob.java:354) -
org.springframework.jdbc.UncategorizedSQLException:
### Error updating database. Cause: java.sql.SQLException: sql timeout
### The error may involve com.hp.nova.dao.instancestruct.EInstanceStructDao.updateEinstanceStepStatusBatch-Inline
### The error occurred while setting parameters

 

 

需要设置一下mycat的超时时间

 

mycat/conf/server.xml

 

 

<system>
<property name="sqlExecuteTimeout">3000</property>

 

把sqlExecuteTimeout改为3000秒,默认不设置为300秒

相关文章:

  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-08-17
  • 2022-01-19
  • 2021-10-18
  • 2022-01-18
相关资源
相似解决方案