oracle Weblogic 12c:重新启动后托管服务器为 FAILED_NOT_RESTARTABLE
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/44527752/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Weblogic 12c: managed server is FAILED_NOT_RESTARTABLE after reboot
提问by Peter Branforn
I have a Weblogic 12c setup running on Windows 2012 RC2. The NodeManager is used to start/stop a managed server.
我有一个在 Windows 2012 RC2 上运行的 Weblogic 12c 设置。NodeManager 用于启动/停止托管服务器。
What works: Starting the managed server through admin console. Also automatic restarting of the managed server through NodeManager after killing the managed server process works. NodeManager, Admin Console and Managed server logs do not show any errors.
工作原理:通过管理控制台启动托管服务器。在杀死托管服务器进程后,通过 NodeManager 自动重新启动托管服务器也可以工作。NodeManager、管理控制台和托管服务器日志没有显示任何错误。
What fails: If the Windows machine reboots (hard power cut or simple reboot) the managed server then is in the "FAILED_NOT_RESTARTABLE" state. Also here NodeManager, Admin Console and Managed server logs do not show any errors.
失败的原因:如果 Windows 机器重新启动(硬断电或简单重新启动),托管服务器将处于“FAILED_NOT_RESTARTABLE”状态。同样在这里,NodeManager、管理控制台和托管服务器日志没有显示任何错误。
The Oracle documentation clearly states how to set this up, basically it is important to start the managed servers with the "-Xrs" or "-Xnohup" JVM parameters. (https://docs.oracle.com/cd/E24329_01/web.1211/e21050/nodemgr_config.htm#NODEM164)
Oracle 文档清楚地说明了如何设置,基本上使用“-Xrs”或“-Xnohup”JVM 参数启动托管服务器很重要。( https://docs.oracle.com/cd/E24329_01/web.1211/e21050/nodemgr_config.htm#NODEM164)
Nevertheless, the reboot of Windows ends up in the error state all the time. Any ideas?
尽管如此,Windows 的重新启动始终以错误状态告终。有任何想法吗?
采纳答案by Peter Branforn
The solution is actually hidden in the documentation linked above: the "-Xrs" is not enough, you also need to change the "nodemanager.properties" file to allow recovery of managed servers after a reboot (by default this is disabled):
解决方案实际上隐藏在上面链接的文档中:“-Xrs”是不够的,您还需要更改“nodemanager.properties”文件以允许在重新启动后恢复托管服务器(默认情况下这是禁用的):
CrashRecoveryEnabled=true;
The documentation is just very chaotic at this point mixes "crash" and "reboot": You will need this flag in bothcases!
文档在这一点上非常混乱,混合了“崩溃”和“重启”:在这两种情况下您都需要这个标志!
NOTE:
笔记:
- Do not forget to check for the little hints hidden in the documentation when running the node manager as a script (you then need additional start parameters to be passed to the node manager shell script)
- Do not forget to add the "-Xrs" flags to your managed servers
- 在将节点管理器作为脚本运行时,不要忘记检查文档中隐藏的小提示(然后您需要将额外的启动参数传递给节点管理器 shell 脚本)
- 不要忘记将“-Xrs”标志添加到您的托管服务器
(There is a Oracle support page that describes this scenario also: https://community.oracle.com/thread/726965)
(有一个 Oracle 支持页面也描述了这种情况:https: //community.oracle.com/thread/726965)