首页 > 解决方案 > Wildfly 服务器在部署后自动关闭

问题描述

我正在使用 wildfly 14.0.1.Final 服务器来部署一个 Spring War 应用程序。成功部署后经过一段时间,服务器自动停止并给出以下日志;

    2019-03-24 11:27:31,002 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 99) WFLYDR0009: Content /opt/wildfly-14.0.1.Final/standalone/data/content/b6/e85bb4bda330a5b3febd424d21871177d573f1 is obsolete and will be removed
    2019-03-24 11:27:31,023 INFO  [org.jboss.as.repository] (ServerService Thread Pool -- 99) WFLYDR0002: Content removed from location /opt/wildfly-14.0.1.Final/standalone/data/content/b6/e85bb4bda330a5b3febd424d21871177d573f1/content
    2019-03-24 11:37:31,124 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0236: Suspending server with no timeout.
    2019-03-24 11:37:31,126 INFO  [org.jboss.as.ejb3] (Thread-2) WFLYEJB0493: EJB subsystem suspension complete
    2019-03-24 11:37:31,129 INFO  [org.jboss.as.server] (Thread-2) WFLYSRV0220: Server shutdown has been requested via an OS signal
    2019-03-24 11:37:31,173 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0019: Stopped Driver service with driver-name = UtilityMasterSatkhira.war_com.mysql.cj.jdbc.Driver_8_0
    2019-03-24 11:37:31,191 INFO  [org.jboss.as.mail.extension] (MSC service thread 1-2) WFLYMAIL0002: Unbound mail session [java:jboss/mail/Default]
    2019-03-24 11:37:31,201 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 101) WFLYUT0022: Unregistered web context: '/UtilityMasterSatkhira' from server 'default-server'
    2019-03-24 11:37:31,217 INFO  [io.undertow.servlet] (ServerService Thread Pool -- 101) Destroying Spring FrameworkServlet 'mvc-dispatcher'
    2019-03-24 11:37:31,217 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 101) Closing WebApplicationContext for namespace 'mvc-dispatcher-servlet': startup date [Sun Mar 24 11:17:53 BDT 2019]; parent: Root WebApplicationContext
    2019-03-24 11:37:31,229 INFO  [org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler] (ServerService Thread Pool -- 101) Shutting down ExecutorService 'base_scheduler'
    2019-03-24 11:37:31,245 INFO  [io.undertow.servlet] (ServerService Thread Pool -- 101) Closing Spring root WebApplicationContext
    2019-03-24 11:37:31,245 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (ServerService Thread Pool -- 101) Closing Root WebApplicationContext: startup date [Sun Mar 24 11:17:45 BDT 2019]; root of context hierarchy
    2019-03-24 11:37:31,259 INFO  [org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean] (ServerService Thread Pool -- 101) Closing JPA EntityManagerFactory for persistence unit 'default'
    2019-03-24 11:37:31,304 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0019: Host default-host stopping
    2019-03-24 11:37:31,307 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
    2019-03-24 11:37:31,310 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = h2
    2019-03-24 11:37:31,338 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0008: Undertow HTTP listener default suspending
    2019-03-24 11:37:31,338 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0008: Undertow HTTPS listener https suspending
    2019-03-24 11:37:31,344 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0007: Undertow HTTP listener default stopped, was bound to ip:80
    2019-03-24 11:37:31,344 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0007: Undertow HTTPS listener https stopped, was bound to ip:8443
    2019-03-24 11:37:31,348 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 108) WFLYCLINF0003: Stopped client-mappings cache from ejb container
    2019-03-24 11:37:31,366 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0004: Undertow 2.0.13.Final stopping
    2019-03-24 11:37:31,489 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment UtilityMasterSatkhira.war (runtime-name: UtilityMasterSatkhira.war) in 355ms
    2019-03-24 11:37:31,494 INFO  [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 14.0.1.Final (WildFly Core 6.0.2.Final) stopped in 361ms

自动关机的可能原因是什么?

服务器启动日志

标签: springwildfly

解决方案


我在我的桌面上没有遇到这样的问题,但是 mysql 容器以我无法在我的 ubuntu 笔记本电脑上理解的方式运行非常缓慢。因此,keycloak 服务器不断收到错误,因为操作系统由于长时间运行进程而发送了终止信号。这个解决方案拯救了我的一天。


推荐阅读