繁体   English   中英

HikariCP 最初关闭

[英]HikariCP shutdown initally

首先,我不是Java开发人员。 但是,我有一个用 Java 开发的服务,直到今天都按预期工作。 我们的数据库服务器出现磁盘错误,因此我们返回 VMVare 备份。
我在不同机器上的服务没有按预期工作(或看起来工作但不工作)。
一年多以前开发的最后一个 Java 代码。 所以任何配置都改变了。 我得到那个日志,我被挤压了。

Java 版本:1.8.0_151
Microsoft SQL Server:2012 企业版

DEBUG 28/05/2019 12:26:55 [main] [] [] [] Checking 0 named HQL queries
DEBUG 28/05/2019 12:26:55 [main] [] [] [] Checking 0 named SQL queries
DEBUG 28/05/2019 12:26:55 [main] [] [] [] Initializing SessionFactoryRegistry : org.hibernate.internal.SessionFactoryRegistry@3f06ebe0
DEBUG 28/05/2019 12:26:55 [main] [] [] [] Registering SessionFactory: aa73b978-22f9-4309-b9f3-e07d951dbd50 ()
DEBUG 28/05/2019 12:26:55 [main] [] [] [] Not binding SessionFactory to JNDI, no JNDI name configured
INFO  28/05/2019 12:26:56 [main] [] [] [] BatchDML Bean afterPropertiesSet
INFO  28/05/2019 12:26:56 [main] [] [] [] HazelcastCache is initiated amr_common
INFO  28/05/2019 12:26:56 [main] [] [] [] HazelcastCache initializing in afterPropertiesSet.
DEBUG 28/05/2019 12:27:21 [springHikariCP housekeeper] [] [] [] springHikariCP - Before cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:27:21 [springHikariCP housekeeper] [] [] [] springHikariCP - After cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:27:51 [springHikariCP housekeeper] [] [] [] springHikariCP - Before cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:27:51 [springHikariCP housekeeper] [] [] [] springHikariCP - After cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:21 [springHikariCP housekeeper] [] [] [] springHikariCP - Before cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:21 [springHikariCP housekeeper] [] [] [] springHikariCP - After cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:51 [springHikariCP housekeeper] [] [] [] springHikariCP - Before cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:51 [springHikariCP housekeeper] [] [] [] springHikariCP - After cleanup stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:58 [main] [] [] [] HHH000031: Closing
TRACE 28/05/2019 12:28:58 [main] [] [] [] Cleaning QueryPlan Cache
TRACE 28/05/2019 12:28:58 [main] [] [] [] Registering external cascade style [persist : STYLE_PERSIST]
DEBUG 28/05/2019 12:28:58 [main] [] [] [] External cascade style regsitration [persist : STYLE_PERSIST] overrode base registration [STYLE_PERSIST_SKIPLAZY]
DEBUG 28/05/2019 12:28:58 [main] [] [] [] Implicitly destroying ServiceRegistry on de-registration of all child ServiceRegistries
DEBUG 28/05/2019 12:28:58 [main] [] [] [] Implicitly destroying Boot-strap registry on de-registration of all child ServiceRegistries
INFO  28/05/2019 12:28:58 [main] [] [] [] springHikariCP - Shutdown initiated...
DEBUG 28/05/2019 12:28:58 [main] [] [] [] springHikariCP - Before shutdown stats (total=5, active=0, idle=5, waiting=0)
DEBUG 28/05/2019 12:28:58 [springHikariCP connection closer] [] [] [] springHikariCP - Closing connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@4a1c0752: (connection evicted)
DEBUG 28/05/2019 12:28:58 [springHikariCP connection closer] [] [] [] springHikariCP - Closing connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@6c2336cd: (connection evicted)
DEBUG 28/05/2019 12:28:58 [springHikariCP connection closer] [] [] [] springHikariCP - Closing connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@62e4d539: (connection evicted)
DEBUG 28/05/2019 12:28:58 [springHikariCP connection closer] [] [] [] springHikariCP - Closing connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@66db5dbd: (connection evicted)
DEBUG 28/05/2019 12:28:58 [springHikariCP connection closer] [] [] [] springHikariCP - Closing connection net.sourceforge.jtds.jdbc.ConnectionJDBC3@23d9df02: (connection evicted)
DEBUG 28/05/2019 12:28:58 [main] [] [] [] springHikariCP - After shutdown stats (total=0, active=0, idle=0, waiting=0)
INFO  28/05/2019 12:28:58 [main] [] [] [] springHikariCP - Shutdown completed.

这里没有错误,至少在 Hikari 的意义上没有错误。 日志说的是您的基于 spring 的应用程序正在关闭,这在这里可见:

DEBUG 28/05/2019 12:28:58 [main] [] [] [] HHH000031: Closing

DEBUG 28/05/2019 12:28:58 [main] [] [] [] Implicitly destroying Boot-strap registry on de-registration of all child ServiceRegistries

Spring 正在关闭其应用程序上下文中的所有 bean。 作为一个副作用,您还会在连接池上收到关闭命令。 但这不仅仅是连接池。 它就是一切。

从我在启动 spring 服务关闭之前的日志中可以看到,您的休眠会话已关闭。 这在日志的前一行中可见。

您需要弄清楚为什么您的 spring 应用程序关闭以及您的休眠会话为什么关闭,Hikari 关闭只是一个副作用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM