2013-06-12 32 views
3

我正嘗試在glassfish 3.1.1中啓動一個域。在此期間啓動,數據庫遷移進行的,這是在我的情況很長,和GlassFish落在超時: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. 

我的問題是:如何增加命令啓動域的超時時間? 600秒是不夠的。

+1

您可以禁用應用程序啓動域並重新啓用該應用程序。 – BevynQ

回答

4

不幸的是,看起來這不是一個選項。

如果你看看到:

\glassfishv3\glassfish\modules\admin-cli.jar你會發現在那裏StartDomainCommand.class,您將看到:

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

注意,即600秒(或60萬個廠)是硬編碼。

看起來這已被註冊爲一個錯誤。見here

對不起,壞消息的傳播者,我想看到這也解決了。