2 tt39635552 tt39635552 于 2014.10.08 16:38 提问

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分钟,求解?

1个回答

YouShouRenSheng
YouShouRenSheng   2015.01.04 16:35

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

Csdn user default icon
上传中...
上传图片
插入图片