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 一道python难题2
  • ¥15 一道python难题
  • ¥15 用matlab 设计一个不动点迭代法求解非线性方程组的代码
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试
  • ¥20 问题请教!vue项目关于Nginx配置nonce安全策略的问题
  • ¥15 教务系统账号被盗号如何追溯设备