GenericPool:cleanUp less than minSize objects in the pool min=2 max=50 count=0
异常求救:有个同步数据脚本,从某个服务器数据库同步过来数据,跑着就报这个异常了
2015-08-02 03:23:40,518 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp less than minSize objects in the pool min=2 max=50 count=0
2015-08-02 03:23:41,267 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp done min=2 max=50 count=2
事务开启方式:
public static TransactionStatus beginNewTransaction() {
DefaultTransactionDefinition td = new DefaultTransactionDefinition(
TransactionDefinition.PROPAGATION_REQUIRES_NEW);
// td.setReadOnly(true);
TransactionStatus status = getTransactionManager().getTransaction(td);
return status;
}
清除缓存方式:
sysOrgDeptService.getBaseDao().getHibernateSession().flush();
sysOrgDeptService.getBaseDao().getHibernateSession().clear();
一段同步数据脚本 跑着就这样:
2015-08-02 03:13:40,503 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp done min=2 max=50 count=2
2015-08-02 03:23:40,518 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp less than minSize objects in the pool min=2 max=50 count=0
2015-08-02 03:23:41,267 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp done min=2 max=50 count=2
2015-08-02 03:33:41,282 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp less than minSize objects in the pool min=2 max=50 count=0
2015-08-02 03:33:41,765 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp done min=2 max=50 count=2
2015-08-02 03:43:41,780 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)
GenericPool:cleanUp less than minSize objects in the pool min=2 max=50 count=0
2015-08-02 03:43:42,670 [INFO] ==== Thread-31: org.enhydra.jdbc.xapool.info(43)