The default behavior when a critical error occurs in a running WebLogic application is to do nothing about the failure condition. This can cause the web server, OHS, to keep routing traffic to the service, even in a highly available situation where there is more than one server available. This situation leaves many with HA setups vulnerable to a single point of failure.
The basic problem is that when you have a WebLogic service running, such as HFM, and it encounters a critical situation such as out of memory (OOM) error, the service comes to a halt and cannot process users requests. End users are left with their requests spinning in the web browser until they eventually timeout. It is important to configure the WebLogic Managed Server to acknowledge the failure and shut itself down quickly so that the other member of the cluster can take over.
Two settings in WebLogic can help with this, under the theme Overload protection. The settings are Failure Action and Panic Action.
This can be scripted to set for all managed servers using WLST
connect(....)
edit()
startEdit()
servers = cmo.getServers()
for server in servers:
name=server.getName()cd('OverloadProtection/' + name)
cmo.setPanicAction('system-exit')
cmo.setFailureAction('force-shutdown')
save()
activate()
More Details about overload protection can be found here:
http://www.dba-oracle.com/t_weblogic_overload_protection.htm
Wow!!!!nice post
ReplyDeleteOracle Weblogic Server Training