配置 IBM Websphere Liberty Profile Server Start &在 Eclipse 之外停止超时值 [英] Configure IBM Websphere Liberty Profile Server Start & Stop timeout values outside of Eclipse

查看:34
本文介绍了配置 IBM Websphere Liberty Profile Server Start &在 Eclipse 之外停止超时值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发在 Liberty Profile 上运行的应用程序

I am developing applications running on the Liberty Profile

(WebSphere Application Server 8.5.5.7/wlp-1.0.10.cl50720150827-0437) on Java HotSpot(TM) 64-Bit Server VM, version 1.7.0_71-b14 (en_GB)

我不得不将 eclipse 中的服务器启动超时值增加到 300 秒.

I have had to increase the Server Startup Timeout value within eclipse to 300s.

一旦我完成了我的开发并想部署到独立"的 Liberty 服务器,例如在 Eclipse 之外.如何配置此服务器启动超时?

Once I have completed my developmemt and want to deploy to a "stand alone" Liberty Server, e.g. Outside of Eclipse. How do I configure this Server Startup timeout?

推荐答案

对于服务器等待应用程序启动的时间,我们确实有一个新的配置选项.如果您的应用程序需要几分钟才能启动,则在您的所有应用程序准备就绪之前,服务器将不会启动.

We do have a new configuration option for how long the server will wait for the applications to start. If your application takes a few minutes to start the server will no go up until all your applications are ready.

您可以在此处阅读有关此内容的信息:http://www-01.ibm.com/support/docview.wss?uid=swg1PI51375

You can read about this here: http://www-01.ibm.com/support/docview.wss?uid=swg1PI51375

此配置选项可用于:http://www-01.ibm.com/support/docview.wss?uid=swg1PI49508

最后一个将关闭服务器启动时出现的任何连接.

That last one will close any connection that comes while the server is starting.

您可以使用这两个配置选项来根据您的应用程序启动时间阻止服务器启动.对于关机,我没有什么可以推荐的.

You could use both this configuration options to hold up the server start based on your application start up time. For shutdown there is nothing I can recommend.

除此之外,正如@Alasdair 所回答的那样,我们在 Liberty 服务器中没有任何启动或关闭超时.

Other than that, as @Alasdair has answered we do not have any start or shutdown timeout in the Liberty Server.

您可以为延迟启动做的另一件事是在启动应用程序服务器之前创建一个 shell 脚本或类似的睡眠 x 时间.

Another thing you can do for delaying the startup is creating a shell script or similar to sleep for x amount of time before starting the application server.

这篇关于配置 IBM Websphere Liberty Profile Server Start &在 Eclipse 之外停止超时值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆