在服务器上以调试模式运行项目时发生疯狂超时 [300]

问题描述 投票:0回答:4

当我在野蝇中运行我的项目时,没有任何问题。但是在 Eclipse 中,当我在 5 分钟(即 300 秒)后在服务器上以调试模式运行项目时,会发生超时错误。 我尝试通过添加来更改独立配置bat文件 设置 JAVA_OPTS=%JAVA_OPTS% "-Djboss.as.management.blocking.timeout=600" 但 300 秒后仍然出现同样的错误。我也尝试更改 Eclipse 的调试设置,但是 n

11:17:34,027 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
    ("core-service" => "management"),
    ("management-interface" => "http-interface")

更多错误

11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:114 /**************** Rule Engine Main Configutation *******************/
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:115 THREAD_LIMIT : 5
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:116 IS QUEUE: true
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:117 SERVICE_EXE_THREAD_LIMIT: 0
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:118 IS SERVICE EXE QUEUE: false
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:119 DB_REPLICATION_THREAD_LIMIT: 0
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:120 IS DB_REPLICATOR QUEUE: false
11:13:12,871 INFO  [stdout] (ServerService Thread Pool -- 68) 2019-08-28 11:13:12,871 INFO  Main:84 ok
11:17:34,027 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0348: Timeout after [300] seconds waiting for service container stability. Operation will roll back. Step that first updated the service container was 'add' at address '[
    ("core-service" => "management"),
    ("management-interface" => "http-interface")
]'
11:17:34,056 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0019: Stopped Driver service with driver-name = FILE_UPLOADER_API.war_com.mysql.jdbc.Driver_5_1
11:17:39,037 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@88002ff for operation add-deployer-chains at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
    at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:524)
    at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1485)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1439)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1412)
    at org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1286)
    at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:859)
    at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:709)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:521)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:470)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:432)
    at org.jboss.as.server.ServerService.boot(ServerService.java:427)
    at org.jboss.as.server.ServerService.boot(ServerService.java:386)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
    at java.lang.Thread.run(Unknown Source)

11:17:39,049 ERROR [org.jboss.as.controller.client] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.server.DeployerChainAddHandler$FinalRuntimeStepHandler@88002ff for operation add-deployer-chains at address [] failed handling operation rollback -- java.util.concurrent.TimeoutException
11:17:44,060 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0190: Step handler org.jboss.as.domain.management.security.SecurityRealmAddHandler$ServiceInstallStepHandler@2cb7e0f0 for operation add at address [
    ("core-service" => "management"),
    ("security-realm" => "ApplicationRealm")
] failed handling operation rollback -- java.util.concurrent.TimeoutException: java.util.concurrent.TimeoutException
    at org.jboss.as.controller.OperationContextImpl.waitForRemovals(OperationContextImpl.java:524)
    at org.jboss.as.controller.AbstractOperationContext$Step.handleResult(AbstractOperationContext.java:1485)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeInternal(AbstractOperationContext.java:1439)
    at org.jboss.as.controller.AbstractOperationContext$Step.finalizeStep(AbstractOperationContext.java:1422)
    at org.jboss.as.controller.AbstractOperationContext$Step.access$400(AbstractOperationContext.java:1286)
    at org.jboss.as.controller.AbstractOperationContext.executeResultHandlerPhase(AbstractOperationContext.java:859)
    at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:709)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:450)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1408)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:521)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:470)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:432)
    at org.jboss.as.server.ServerService.boot(ServerService.java:427)
    at org.jboss.as.server.ServerService.boot(ServerService.java:386)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:372)
    at java.lang.Thread.run(Unknown Source)
java debugging server wildfly
4个回答
2
投票

我尝试通过添加 set JAVA_OPTS=%JAVA_OPTS% "-Djboss.as.management.blocking.timeout=600" 来更改独立配置bat文件

您更改了 .bat 文件,但日志中似乎仍然超时=300。您应该更改standalone.xml 文件。您可以将

deployment-timeout="xxx"
属性添加到
depoyment-scanner
元素。 此页面帮助您更改超时属性。 有时超时异常只是超时异常。如果这是问题所在,上述操作将解决问题。但如果问题不仅仅是超时异常,则此操作(增加超时)隐藏了真正的问题。

首先,问题的根源可能是

eclipse
。删除所有断点并重新启动服务器。如果此解决方案不能解决问题,请使用
standalone.bat
而不是
eclipse
手动启动服务器。

如果都没有解决问题,你应该自己找到真正的问题。例如,您的 DNS 设置可能已正确设置。


1
投票

我知道这是个老问题,但我已经在那里寻找解决方案一段时间了,正如 Banupriya velusamy 所说,您需要将 jboss.as.management.blocking.timeout 配置为系统属性,看看如何:https://access。 redhat.com/solutions/1190323


0
投票

在 jboss 中配置 jboss.as.management.blocking.timeout 属性来调整超时


0
投票

就我而言,(我使用调试模式并且服务器在 Eclipse 中运行)删除所有断点,以正常模式重新启动,最后再次重新启动 y 调试模式。

© www.soinside.com 2019 - 2024. All rights reserved.