问题描述
- 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分钟,求解?
解决方案
我也遇到这个问题了,怎么解决呢
时间: 2024-12-23 09:18:39