JBoss 5 关闭有什么作用?
从较高的层面来看,JBoss 5 的关闭有什么作用?如果我只是终止 java 进程而不是正常关闭 JBoss,可能会出现什么问题?
对于我的应用程序来说,正常的 JBoss 5 关闭大约需要 6 分钟,该应用程序相当大并且有 305 个 EJB。在从 jndi 解除 EJB LocalHomes 的绑定之前,JBoss 似乎停顿了很长时间。
鉴于此,我正在考虑简单地终止 java 进程。我想知道如果我这样做会出现什么问题。
我主要在 *nix 中运行 JBoss,有时在 Windows 中运行。
At a high level, what does JBoss 5's shutdown do? What might go wrong if I just kill the java process instead of gracefully shutting down JBoss?
A graceful JBoss 5 shutdown takes about 6 minutes for my application, which is pretty big and has 305 EJBs. JBoss seems to pause for a long time just before unbinding the EJB LocalHomes from jndi.
Given that, I am considering simply killing the java process. I am wondering about what might go wrong if I do that.
I run JBoss in mostly in *nix, sometimes in Windows.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
终止该进程将使 JBoss 文件处于潜在不一致的状态,并且肯定会使它们处于混乱的状态。当它重新启动时,它可能会自行清理干净,但也可能不会。
在Windows上(你没有说你使用哪个平台),我看到一个被杀死的JBoss进程无法正确释放锁定的文件,并且服务器根本不会重新启动。不过,这种情况非常罕见。
最后,如果它对你有用,我就不会太担心。
Killing the process will leave the JBoss files in a potentially inconsistent state, and will certainly leave them in a messy state. When it restarts, it will probably clean up after itself OK, but then again it may not.
On Windows (you didn't say which platform you use), I've seen a killed JBoss process not release locked files properly, and the server won't restart at all. It's pretty rare, though.
In the end, if it works for you, the I wouldn't worry too much about it.
它释放所有连接,例如 jndi、jdbc、jms.. 它还等待您的类完成它正在做的事情。它还会停止其他服务,例如 jms 和 Web 控制台
It releases all you connections such as jndi, jdbc, jms.. It also waits for your classes to finish up what it is doing. It also stops other services such as jms and web console