Wednesday, June 30, 2010

Starting Admin and Managed Servers using Node Manager and WLST

Node Manager is a WebLogic Server utility, independent of domains, that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location. You can further use the Node Manager to control Administration Server and Managed Server from a local location also as I used in my case. Below post explains how you can start your Admin and Managed servers from the Node Manager.


Note : I have used Windows Vista OS and Oracle Database 11.2. All the commands for Linux/Unix will change accordingly.


Please follow the following steps for the same.


1.) Firstly configure the Node Manager
2.) Verify the Node Manager
3.) Once you verify and complete the above steps, I recommend, stop and close everything open till now. Then follow the following steps.
Start your Node Manager using <Middleware_Home>\wlserver_10.3\server\bin\startNodeManager.cmd command from the command prompt.

  • Open a fresh command prompt window and run WLST.cmd from <Middleware_Home>\wlserver_10.3\common\bin\WLST.cmd.
  • Next task is to connect to the Node Manager using nmConnect(). In the WLST console window type nmConnect('weblogic','welcome1','neeraj-pc','5556','soa_domain').
  • Once connected to Node Manager the command prompt will change.
  • Now to start your Admin server type nmStart() e.g. nmStart('AdminServer')
  • To start your managed server type nmStart() e.g. nmStart('soa_server1')
  • If it gives the success notification, you are done. Also, you can verify the same from the Weblogic Console.


    9 comments:

    1. while starting the managed server if you get the following error ..

      ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
      ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
      ["debugInit.c",L500]
      JDWP exit error JVMTI_ERROR_INTERNAL(113): No transports initializedFATAL ERROR in native
      method: JDWP No transports initialized, jvmtiError=JVMTI_ERROR_INTERNAL(113)

      Solution:
      Remove the following from the script that is used to start the server.
      -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n.
      This is used to debug the process and I don't think you may need to start a production
      system in debug mode

      ReplyDelete
    2. Thnaks to your article. I can try it though I couldn't install AIA FP on the prebuilt SOA suit in VitualBox with Macbook.
      Probably It is low memory issue.

      ReplyDelete
    3. how to start managed servers using nodemananger with WLST.

      ReplyDelete
    4. after typing nmConnect('weblogic','welcome1','neeraj-pc','5556','soa_domain') on WLST cmd.
      There is an error
      Traceback (innermost last):
      (no code object) at line 0
      File "", line 2
      SyntaxError: Lexical error at line 2, column 0. Encountered: after : ""
      Please help

      ReplyDelete
    5. Steps are so clear any one can understand.
      Why don't you kindly include verification of server state

      ReplyDelete
    6. Somebody should tell you oracle is a great piece of shit company.

      ReplyDelete
      Replies
      1. LOL... you establish one good company dude

        Delete
    7. hi can any body tell mw how to start all managed servers configured in a domain. I dont want to name each managed server and start one by one. Please help me.

      ReplyDelete