Pentaho BI 服务器 每天重启一次的问题解决
来源:互联网 发布:淘宝一键复制宝贝 编辑:程序博客网 时间:2024/05/20 20:18
工作数据库是mysql
Mysql服务器默认的“wait_timeout”是8小时,也就是说一个connection空闲超过8个小时,Mysql将自动断开该connection。
There is a solution introduced in the Pentaho forum for this, you can find the thread with the following link.
http://forums.pentaho.com/showthread.php?54939-Pentaho-Server-falls-each-night-..&p=178067#post178067
But above forum post is based on the JBoss server. My intention with this post is to implement the same on the tomcat server since the file structure is a bit different. Ok without further due, let get into action.
01. Download the C3P0 driver from SourceForge
02. Extract the c3p0-0.9.1.2.jar file into \biserver-ce\tomcat\common\lib\
03. Open the mysql5.hibernate.cfg.xml XML file in the \biserver-ce\pentaho-solutions\system\hibernate\ folder
04. Add the following code into the file
<!— 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>
- Pentaho BI 服务器 每天重启一次的问题解决
- Pentaho BI
- 自己用ftp重启服务器的一次经历.
- Pentaho BI平台使用
- Pentaho bi 中文文档
- Pentaho BI Platform安装
- Pentaho BI源码编译
- 关于Pentaho开源BI框架的研究报告
- 华鼎数据库与Pentaho BI平台的整合
- [转帖]关于Pentaho开源BI框架的研究报告
- 可以对Pentaho BI平台做的一些定制。
- 通过 Web Service 调用Pentaho BI 的API
- Pentaho BI Server的启动过程详解(一)
- Pentaho BI Server的启动过程详解(二)
- Pentaho BI 收发邮件设置
- Pentaho CDE 乱码问题解决
- 一次重启mysql的经历
- Pentaho 开发: 在eclipse中构建Pentaho BI Server工程
- android优化
- 排序——第k小的数
- PHP开发者常犯的10个MySQL错误
- C语言也能干大事第一节
- 棋盘覆盖问题 (分治)
- Pentaho BI 服务器 每天重启一次的问题解决
- 三种管理团队
- 形象理解ERP
- 趋势
- linux 入门
- iOS内存警告
- Ubuntu下Chrome浏览器flash中文乱码
- C语言也能干大事第二节
- [PhotoShop]在没有扫描仪的情况下如何使用普通照片PS出扫描效果