WebLogic 12c: Node Manager Best Practices
来源:互联网 发布:西安网络兼职 编辑:程序博客网 时间:2024/04/27 19:36
During the last couple of years (and the last couple of WebLogic versions) I collected a number of best practices regarding WebLogic nodemanager. All of them hold true for WebLogic 12c as well. This posting is not a step-by-step beginners guide and it will not save you from attending some training or studying the Oracle documentation regarding node manager yourself. Anyway, here are some suggestions, check if the apply for your environments:
Node Manager Best Practices 1
- At first, take a decision to start servers with or without NM. Note, that is not absolutely necessary. You can always start your servers with the scripts generated by the config wizzard. I personally know rather big companies building lovely cars who took the decsicion not to use node manager.
- Would I use nodemanger myself? For an “average” project: yes! Only after configuring node manager you can use the WebLogic admin console to start and stop managed servers and node manager will restart you failed servers as well. However, if you consider restarting you servers automatically because of out-of-memory problems, better read this article about “surviving generations” to understand how to track down memory leaks and fix them. Anyway, you still want to use node manager.
- Make sure you understand that nodemanger will use default values to start your servers unless you specify them yourself in the admin console under server startup parameters.
- Make sure you always start your servers with same startup parameters! This is really important. You end up in deep trouble if you don’t. Believe me.
Imagine somebody is starting a managed server using the admin console and the provided values there. Next day somebody else starts a server using the provided scripts (which – at least in real life – will never be identical to the startup values configured in the admin console). Now depending on the way the server was started it will behave differently and show erratic behaviour or not. - Document and communicate the usage of node manager. Write it down in the operations manual. If you ever hire me as a consultant for some performance tuning it helps to know if you are actually using node manager or not.
- Don’t forget to enroll new machines for NM usingnmEnroll()
- A good way to overcome the potential problem with startup parameters configured in admin console is to use:12
[file: nodemanger.properties]startScriptEnabled=
true
stopScriptEnabled=
true
Then node manager will use the generated start script and you do not need to configure startup values in the admin server console.
- If you are not using SSL for your domain the default option for node manager to use encrypted communication does not make that much sense for you. Disable it. On the admin server site switcht to “plain text” for node manager communication and in the node manager.properties located in WL_HOME/common/nodemanager set1
secureListener=
false
- If you decide to use SSL for the node manager communication, get correct certificates! The demo certificate will not work in a distributed system. Make sure the hostnames in the certificates are correct. If they are not correct, you may want to consider disabling host name verification on the admin server (which is the client for the node manager).
- Remember that node manager is not part of the domain. Still you can check the node manager status and and see the logs directly from the WebLogic admin console.
Node Manager Best Practices 2
Starting the Managed Server Using Node Manager and WLST
The steps for starting the Managed Server using WLST and Node Manager are as follows :
i) Setting up your environment.
Add WebLogic Server classes to the CLASSPATH
environment variable andWL_HOME
\server\bin
to the PATH
environment variable. OR
You can use a C:\Oracle\Middleware\wlserver_12.1\server\bin\setWLSEnv
.cmd script to set both variables.
ii) Start WLST Session using command : java weblogic.WLST
iii) Start Node Manager using command :
startNodeManager(verbose=’true’, NodeManagerHome=’C:\\Oracle\\Middleware\\wlserver_12.1\\common\\nodemanager’, ListenPort=’5556′, ListenAddress=’localhost’)
iv) Connect WLST to a Node Manager by entering the nmConnect command.
nmConnect(‘weblogic’, ‘weblogic123′, ‘localhost’, ’5556′, ‘base_domain’ , ‘C:\\Oracle\\Middleware\\user_projects\\domains\\base_domain’ , ‘ssl’)
note: Node Manager security relies on a one-way SSL connection between the client and server.If you are establishing a command line connection to the Java Node Manager using the WebLogic Server Scripting Tool (WLST) nmConnect command, you provide the Node Manager user name and password(here weblogic and weblogic123 respectively). Node Manager verifies the username and password against the domain’s nm_password.properties file.Node Manager credentials are located on the Security>General>Advanced Options of Console page.Administration Console users do not need to explicitly provide credentials to connect to Node Manager—the Node Manager user name and password are available in the domain configuration and are provided automatically.
v) Use the nmStart command to start a server.
nmStart(‘AdminServer’)
Monitor the status of the Administration Server by entering the nmServerStatus command.
nmServerStatus(‘AdminServer’)
vi) Connect WLST to a running WebLogic Administration Server instance using the connect command.
connect(‘weblogic’,'weblogic123′)
vii) To start a Managed Server or cluster, enter the following command:
start(‘Server-0′,’Server’)
start(‘mycluster’, ‘Cluster’)
viii) Stop the server by entering the nmKill command.
nmKill(‘Server-0‘)
ix) Stop the AdminServer by entering the nmKill command.
nmKill(‘AdminServer‘)
x) Disconnect the node manager : nmDisconnect() and Exit the WLST: exit()
note: To find node manager process :
For windows
netstat -ao| findstr 5556
TCP ajit:5556 ajit:0 LISTENING 1900
here : PID – 1900.
For Linux/unix :
netstat -an | grep -v grep | grep weblogic.NodeManager
- WebLogic 12c: Node Manager Best Practices
- Oracle WebLogic Server 12c: Node Manager配置与使用
- Best Practices -
- biee 12c 修改node manager密码
- 使用Node Manager来管理Weblogic Server
- C Sharp Coding Standards and Best Programing Practices
- CUDA C最佳实践-CUDA Best Practices(一)
- CUDA C最佳实践-CUDA Best Practices(二)
- CUDA C最佳实践-CUDA Best Practices(三)
- Mastering BEA WebLogic Server: Best Practices for Building and Deploying J2EE Applications
- Web Services Best Practices
- JUnit best practices
- Javascript Best Practices
- CAB Best Practices
- 最佳实践(Best Practices)
- Java Database Best Practices
- 一些C# Best Practices
- LIVE Networking: Best Practices
- DOM操作——怎样添加、移除、移动、复制、创建和查找节点。
- jquery Boxy的使用方法
- getaddrinfo函数原型
- .net中解析json 之 DataContractJsonSerializer类
- NHibernate的大数据量插入的简单性能测试
- WebLogic 12c: Node Manager Best Practices
- jquery-validation 学习总结
- x86 vt-d在linux中的应用
- wpf 浏览器应用程序去除系统自带的网页导航按钮
- sql 笔记
- 根据新浪的API来得到当前用户所在地
- android 读写sdcard 一
- mina2源码学习
- ThinkPHP常用配置