tt39635552 2014-10-08 08:38 采纳率: 0%
浏览 3708

tomcat启动一项hibernate加载项启动时间太长

tomcat日志截码:

Oct 08, 2014 11:58:50 AM org.hibernate.type.BasicTypeRegistry register
INFO: Type registration [materialized_blob] overrides previous : org.hibernate.type.MaterializedBlobType@a5eeb86
Oct 08, 2014 12:02:00 PM net.sf.ehcache.config.CacheConfiguration warnTieredSizing
WARNING: Configuration problem for cache hollysys.weibo.emotions: MaxEntriesLocalHeap equal or greater than MaxEntriesLocalDisk. This will result in useless disk storage.

在materialized_blob上卡了近5分钟,采用的是tomcat数据源方式配置数据链接,如下:

<Resource name="jdbc/HollyMPService"
              auth="Container"
              type="javax.sql.DataSource"
              factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
              testWhileIdle="true"
              validationInterval="30000"
              timeBetweenEvictionRunsMillis="30000"
              maxActive="500"
              minIdle="50"
              maxWait="10000"
              initialSize="10"
              removeAbandonedTimeout="60"
              removeAbandoned="true"
              logAbandoned="true"
              minEvictableIdleTimeMillis="30000"
              jmxEnabled="true"
              jdbcInterceptors="org.apache.tomcat.jdbc.pool.interceptor.ConnectionState;org.apache.tomcat.jdbc.pool.interceptor.StatementFinalizer"
              username="xxxx"
              password="xxxx"
              driverClassName="oracle.jdbc.driver.OracleDriver"
              url="jdbc:oracle:thin:@xx.xx.xx.xx:1521:xxxx"/>  

</Context>  

在window环境下ok,但是部署到linux下就要卡5分钟,求解?

  • 写回答

2条回答 默认 最新

  • 追风小勺年 2015-01-04 08:35
    关注

    我也遇到这个问题了,怎么解决呢

    评论

报告相同问题?

悬赏问题

  • ¥15 运筹学中在线排序的时间在线排序的在线LPT算法
  • ¥30 求一段fortran代码用IVF编译运行的结果
  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧