我无法获得hibernate控制台监视器的详细统计信息(参见图片)。
设定:
记录器:
10:04:40,918 INFO [org.hibernate.engine.internal.StatisticalLoggingSessionEvent
Listener] (default task-7) Session Metrics {
318756 nanoseconds spent acquiring 1 JDBC connections;
29054 nanoseconds spent releasing 1 JDBC connections;
483861 nanoseconds spent preparing 2 JDBC statements;
16363812 nanoseconds spent executing 2 JDBC statements;
0 nanoseconds spent executing 0 JDBC batches;
0 nanoseconds spent performing 0 L2C puts;
0 nanoseconds spent performing 0 L2C hits;
0 nanoseconds spent performing 0 L2C misses;
398096 nanoseconds spent executing 1 flushes (flushing a total of 9 entities
and 0 collections);
7823 nanoseconds spent executing 1 partial-flushes (flushing a total of 0 en
tities and 0 collections)
}
正如你所看到的,我没有得到任何" Time in DB"," Performance"等