Set Up Automatic Startup
It is possible to configure any Windows service to restart itself upon failure. These are standard options available when configuring a Windows service in the context of Windows Services Manager.
However, it is important to understand that Windows Services Manager only monitors the service's JVM process. If the JVM process fails (shuts down), then Windows Services Manager will attempt to restart it. But there are some scenarios where the WebLogic Admin Server or Managed Server may go into an unhealthy or failed state while the JVM is still running. The Windows Service Manager will not know to restart the process in these cases, whereas if the Admin Server and Managed Server had been started using the WebLogic Node Manager, Node Manager would recognize such a state and restart the process.
Oracle recommends starting the Admin and Managed Servers through the Node Manager using python scripts and then configuring the Windows server to execute the python scripts at startup.
To start servers manually, see How to Start Servers Manually.
This section includes:
Create boot.properties
Check if the boot.properties file exists in Oracle_Home\user_projects\domains\FRDomain\servers\AdminServer\security.
If not, create it as a plain text file with the following contents:
username = weblogic_user_name password = weblogic_user_password
By default, the WebLogic user name is weblogic
. This user name and password will get encrypted after all services are started.
Parent topic: Set Up Automatic Startup
Increase the Delay for Auto Start OPADomain and FRDomain
For OPADomain and FRDomain to start successfully, depending on the performance in your environment, you may want to increase the delay by which OPADomain and FRDomain start to allow time for Node Manager to start first.
- Go to OPA_HOME\config\opa_setup_scripts\ directory.
- Open the autostartfrdomain.cmd and autostartopadomain.cmd files.
- In each file, find the line
PING 127.0.0.1 -n 30
, and change the value from 30 to 60. - Save and close the files.
Parent topic: Set Up Automatic Startup
Set Up Scripts to Execute Automatically at Machine Startup
Set up the Task Scheduler to start the FRDomain and OPADomain at startup:
Parent topic: Set Up Automatic Startup