gpt4 book ai didi

java - Glassfish : increase start-domain timeout

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:17:51 27 4
gpt4 key购买 nike

我正在尝试在 glassfish 3.1.1 中启动域。在此启动过程中,执行了一次数据库迁移,这对我来说很长,并且 glassfish 超时:

> asadmin start-domain MyDomain

[域尝试启动]

No response from the Domain Administration Server (MyDomain) after 600 seconds.
The command is either taking too long to complete or the server has failed.
Please see the server log files for command status.
Please start with the --verbose option in order to see early messages.
Command start-domain failed.

我的问题是:如何增加命令 start-domain 的超时时间? 600 秒不够。

最佳答案

不幸的是,目前看来这不是一个选项。

如果您查看:

\glassfishv3\glassfish\modules\admin-cli.jar 你会在里面找到 StartDomainCommand.class,你会看到:

  private boolean timedOut(long startTime) {
return System.currentTimeMillis() - startTime > 600000L;
}

请注意,600 秒(或 600000 米尔斯)是硬编码的。

看起来这已被注册为错误。参见 here .

很抱歉成为坏消息的传递者,我也希望看到这个问题得到解决。

关于java - Glassfish : increase start-domain timeout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17060636/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com