我们正在升级到Dspace 6.3,并遇到性能问题。 例如,打开优势可在5秒内加载首页, JSPUI组编辑器中“创建新组”选项卡指向的页面的加载大约需要5分钟。
详细的分析表明,在一个连接上查询数据库要花大量时间,而想到的自然问题是Hibernate是否缓存良好。加载“创建新组”页面后,Hibernate报告以下内容。
2019-01-23 14:20:50,952 INFO
org.hibernate.engine.internal.StatisticalLoggingSessionEventListener @ Session Metrics {
494000 nanoseconds spent acquiring 1 JDBC connections;
0 nanoseconds spent releasing 0 JDBC connections;
245527100 nanoseconds spent preparing 20333 JDBC statements;
7450426100 nanoseconds spent executing 13294 JDBC statements;
6791542000 nanoseconds spent executing 7039 JDBC batches;
273618000 nanoseconds spent performing 14103 L2C puts;
116900 nanoseconds spent performing 26 L2C hits;
38389200 nanoseconds spent performing 7051 L2C misses;
113577100 nanoseconds spent executing 2 flushes (flushing a total of 26592 entities and 87312 collections);
244366925500 nanoseconds spent executing 7053 partial-flushes (flushing a total of 47154144 entities and 47154144 collections)
}
我们有大约4000个馆藏+社区和6000+个团体(其中许多是系统生成的)。
任何人都知道这是一个休眠问题还是其他问题,以及如何提高性能?
预先感谢