Я применил журнал статистики гибернации. И для целей тестирования я получаю список сущностей из БД и среди обычного журнала - где он показывает операторы, время выполнения ... и т. Д. - я обнаружил метрики сеанса с 0 значениями, такими как:
Session Metrics {
74800 nanoseconds spent acquiring 1 JDBC connections;
0 nanoseconds spent releasing 0 JDBC connections;
0 nanoseconds spent preparing 0 JDBC statements;
0 nanoseconds spent executing 0 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;
0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);
0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
Чтоэто значит? Hibernate открывает соединение без цели и никогда не освобождает его?