Weblogic的管理服务器与受管服务器

weblogic管理服务器和受管服务器:
   域包含一个称为“管理服务器”的特殊 WebLogic Server 实例,它是您配置和管理域中全部资源的中心点,一个域有仅只有一个管理服务器实例
   在生产环境中,应将 Web 应用程序、EJB 和其余资源部署到受管服务器上,管理服务器只应用于配置和管理目的。
   多台受管服务器能够组成一个“群集”,这样能够使用单个管理服务器来简化对受管服务器实例的管理,现时还能够平衡负载并为关键应用程序提供故障转移保护。

组织域的基本考虑因素:
   a) 应用程序的逻辑划分。例如,能够用一个域来专门提供最终用户功能(例如购物车),而将另外一个域专用于后端财务应用程序。
   b) 物理位置。能够为企业的不一样位置或分支创建单独的域。
   c) 大小。您可能发现,将域组织成较小的单元可提升管理效率,能够由不一样的系统管理员进行管理。相反,您可能发现维护一个域或较少数目的域能够使维护一致性配置变得更容易。

启动受管服务器的方法:
一、在weblogic的当前域目录中使用命令:startManagedWebLogic [SERVER_NAME] [ADMIN_URL]
   SERVER_NAME - 待启动的域中的受管服务器名字(大小写敏感)
   ADMIN_URL - 管理服务器地址包含端口号
   如:startManagedWebLogic testManagedServer http://localhost:7001
二、在weblogic的控制台界面启动,操做:
   选择要启动的受管服务器,选择"控制"->"启动中止"->"启动此服务".
   此时受管服务器启动失败,会出现相似以下错误信息:
   描述: Starting DemoManagedServer server ...
   此任务的说明。
   状态: FAILED
       此任务的状态。
   开始时间: Fri Mar 14 11:14:13 CST 2008
       启动此任务的时间。
   结束时间: Fri Mar 14 11:14:14 CST 2008
        完成此任务的时间。
   异常: SecureCommandInvoker: Could not create a socket to the NodeManager running on host 'localhost:5555' to execute command 'online DemoManagedServer', reason: Connection refused: connect. Ensure that the NodeManager on host 'localhost' is configured to listen on port '5555' and that it is actively listening
       在执行此任务时出现的异常。
   日志:
   任务活动的日志。
  
   解决办法:
   Solution 1:
           To make a managed server start, we need to start the node manager on that machine. You can find the script to start the server in WLS_HOME\server\bin\startNodeManager.cmd or sh.
          
           The order in which we need to start the servers are
           1.Start the node manager
           2.Start the Admin server
           3.Start the specific managed server we need to start.
          
   Solution 2:
           Have you set up a "Machine" for each of the managed servers ?
          
           You need to do that (extremely simple: Machines --> Config. New (Unix) Machine ), and then under your new machine, configure the listen address under Nodemanager Tab, with the IP of the machine running the ManagedServer.
          
           The problem seems to be with the adress which the N.M. listens:
           if you telnet localhost 5555, you'll get nothing ("conn refused"), but if you telnet X.X.X.X 5555, you'll get the prompt for the NM ( "Escape character is ]" )
          
           So, if you dont configure the managed server to speak with the nodemanager via real ip address instead of localhost (127.0.0.1), you get nothing.

群集和非群集的受管服务器之间的关键区别在因而否支持故障转移和负载平衡,群集支持上述功能,而非群集不支持。node

相关文章
相关标签/搜索