Monday, March 4, 2013

Configuring and Starting Node Manager

Version: WebLogic 10.3.5
Description: This guide will show you how to configure and start node manager. After completing this guide, you will be able to start and shutdown your managed servers through the Weblogic Administration console.

The screenshots given below demonstrates how to shut down or start the servers through the Weblogic administration console. You may skip this if you are already familiar with the Weblogic console.

Enter your weblogic administrator credentials.

Select the servers link under the environment section.

Click the control tab on the section menu.

Click the weblogic server instance you would like to start or shutdown.


Node Manager Configuration
1. The "nodemanager.properties" file must be created. This file can be created for you the first time you run node manager.

2. Execute the "startNodeManager.sh" script. This can be found in the "<WL_HOME>/server/bin" directory.
cd /home/oracle/Oracle/Middleware/wlserver_10.3/server/bin
./startNodeManager.sh

3.  Shutdown node manager.
#Find the process id of node manager
ps -ef | grep nodemanager
#Kill the pid (Use the first number)
kill 7453

4. The "nodemanager.properties"  file should have been created for you. This file is located in "<wl_home>/common/nodemanager". Modify "startScriptEnabled" parameter to true.
cd /home/oracle/Oracle/Middleware/wlserver_10.3/common/nodemanager
vi nodemanager.properties
#In the nodemanager.properties file, set the startScriptEnabled to true
StartScriptEnabled=true

In order to stop the Node Manager through WLST, you must set the QuitEnabled property to true in the nodemanager.properties file.
#Enable stopNodeManager()
QuitEnabled=true 

Restart node manager for changes to take in effect.

5. A Node manager is associated with a machine. In order to start the servers with node manager, the servers must have a specified machine. The screenshots given below will show you how to create a machine and setup the servers to run under the node manager that is associated with that machine. I have set all servers to be able to be ran by one node manager. Adjust to your needs. The Weblogic server will need to be restarted after making changes.

Select machines link to create a new machine for your node manager.

Click the new button to create a new machine for node manager.

Specify the name and machine operating system of the your weblogic machine instance.

Enter type, listen address, and listen port of your node manager associated with the new machine.

Select the new machine you have created.

Click the servers tab to add servers associated with your machine.

Add servers to your machine.


Add existing servers


Troubleshooting

You may get this error if you did not setup node manager properly. Follow this guide for solution.


The errors displayed in the picture happens whenever you try to start a managed sever in the WebLogic administration console without the node manager running.

Even when node manager is running, the managed servers may not start if node manager is not configured properly.  If node manager is not configured properly,  a managed server may appear to running in the Weblogic administration console. You can look at the enterprise manager console to see the exact statuses of your servers. To fix this problem, change the "startScriptEnabled" parameter to true in the "nodemanager.properties" file.

No comments:

Post a Comment