Hibernate监视器仅显示没有统计信息的查询

时间:2017-01-25 09:20:12

标签: hibernate jconsole hibernate-statistics

我无法获得hibernate控制台监视器的详细统计信息(参见图片)。

设定:

  • Jboss 9
  • Hibernate 4.3.10.Final
  • 休眠-JConsole的-1.0.7.jar

enter image description here

记录器:

    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"等

0 个答案:

没有答案