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

相關文章
相關標籤/搜索