0
當我的應用程序啓動時,我開始遇到性能問題。 我有休眠5.2.7 & EHCache 2.9.0。休眠和EHCache性能問題
你可以從日誌中看到它需要24秒完全加載Hibernate配置:
19:29:16.446 INFO - HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
19:29:17.770 WARN - HHH90000021: Encountered deprecated setting [hibernate.ejb.interceptor], use [hibernate.session_factory.interceptor] instead
19:29:21.998 WARN - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Users/admin/.gradle/caches/modules-2/files-2.1/net.sf.ehcache/ehcache/2.9.0/8a4f89d91daafb3994ed212201f935554a200b4b/ehcache-2.9.0.jar!/ehcache-failsafe.xml
19:29:25.285 WARN - HHH020003: Could not find a specific ehcache configuration for cache named [org.Entity2]; using defaults.
19:29:28.652 WARN - HHH020003: Could not find a specific ehcache configuration for cache named [org.Entity1]; using defaults.
19:29:35.952 WARN - HHH020003: Could not find a specific ehcache configuration for cache named [org.Entity3]; using defaults.
19:29:35.958 WARN - HHH020007: read-only cache configured for mutable entity [org.Entity3]
19:29:40.486 INFO - HHH000397: Using ASTQueryTranslatorFactory
如果我升級到的EHCache 2.10.3問題仍然再現。