PENTAHO连接超时问题
来源:互联网 发布:客户画像 大数据分析 编辑:程序博客网 时间:2024/06/09 19:42
1.下载http://sourceforge.net/projects/c3p0
2.将c3p0-0.9.2.jar 和 mchange-commons-java-0.2.3.3.jar 解压到 /usr/local/pentaho/biserver-ce/tomcat/webapps/pentaho/WEB-INF/lib目录及/usr/local/pentaho/administration-console/lib
3.编辑mysql5.hibernate.cfg.xml 增加下面配置(在<session-factory> 和 <!-- MySQL Configuration -->之间 )
<!--
hibernate c3p0 settings
-->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="hibernate.c3p0.acquire_increment">3</property>
<property name="hibernate.c3p0.idle_test_period">10</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">75</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.timeout">25200</property>
<property name="hibernate.c3p0.preferredTestQuery">select 1</property>
<property name="hibernate.c3p0.testConnectionOnCheckout">true</property>
<!--
hibernate cache settings
-->
<!-- End of patch added Friday April 3, 2009 to address issues of the database connection going dead
-->
hibernate c3p0 settings
-->
<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>
<property name="hibernate.c3p0.acquire_increment">3</property>
<property name="hibernate.c3p0.idle_test_period">10</property>
<property name="hibernate.c3p0.min_size">5</property>
<property name="hibernate.c3p0.max_size">75</property>
<property name="hibernate.c3p0.max_statements">0</property>
<property name="hibernate.c3p0.timeout">25200</property>
<property name="hibernate.c3p0.preferredTestQuery">select 1</property>
<property name="hibernate.c3p0.testConnectionOnCheckout">true</property>
<!--
hibernate cache settings
-->
<!-- End of patch added Friday April 3, 2009 to address issues of the database connection going dead
-->
0 0
- PENTAHO连接超时问题
- Pentaho 连接mysql错误问题的解决
- Pentaho Report Designer连接HSQLDB问题
- MYSQL 连接超时问题
- socket连接超时问题
- mysql连接超时问题
- MySql连接超时问题
- SOAPConnection连接超时问题
- 连接超时问题
- JDBC连接超时问题
- myBatis连接超时问题
- Mysql出现连接问题,连接超时问题。。。
- oracle 远程连接超时问题
- SSH会话连接超时问题
- JDBC连接数据库 超时问题
- MySQL连接超时关闭问题
- PHP连接ORACLE超时问题
- SSH会话连接超时问题
- linux字体安装
- 通过ant脚本编译打包android工程
- linux下实现VPS web和mysql数据的备份脚本
- pentaho目录名字中文显示
- CET-4
- PENTAHO连接超时问题
- I2S和PCM
- Xcode快捷键
- matlab图像算法源码
- Windows托盘程序实现
- 一个资深程序员看12306(一)
- c++类防止被继承的一种方法
- CRS-2406 Bug 10400667
- C++中的声明与定义