Thursday, May 8, 2014

How to Start the WebLogic Server in Debug Mode


Starting the WebLogic Server in Debug Mode



To start the WebLogic Managed Server in debug mode (not the Admin Server).
Use the following procedure to start the WebLogic Managed Server in debug mode:
  1. Stop both the Admin Server and Managed Server if they are still running.
  2. Go to directory <WEBLOGIC_HOME>/user_projects/domains/<DOMAIN>/bin.
  3. Copy the existing startWebLogic.sh script to a new script file, startWebLogic_Debug.sh.
  4. Use a text editor to open startWebLogic_Debug.sh.
  5. After the line ${JAVA_HOME}/bin/java ${JAVA_VM} –version, add the following two lines:
    echo "Launching Java with debug port: 10171"
     
    JAVA_OPTIONS="-Xdebug -Djava.compiler=NONE -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=10171,suspend=n $JAVA_OPTIONS"
    
    The debug port does not have to be 10171 if the port specified is available.
  6. Save this change.
  7. Copy the existing startManagedWebLogic.sh script to a new script file, startManagedWebLogic_Debug.sh.
  8. Use a text editor to open startManagedWebLogic_Debug.sh.
  9. Find the two lines that are referring to startWebLogic.sh.
  10. Replace startWebLogic.sh with startWeblogic_Debug.sh. This change is to start the WebLogic Managed Server in debug mode by invoking thestartWebLogic_Debug.sh script.
  11. Save this change.
  12. Start the Admin Server by running the usual start-up script, startWebLogic.sh.
  13. Start the Managed Server in debug mode by running the new script, startManagedWebLogic_Debug.sh.
or

Using the WebLogic Admin Console, navigate to the ‘Server Start’ properties of the managed server that hosts LiveCycle. Add the following to the ‘Arguments’ field. The port used (1044) should be available on the node:
-Xdebug -Xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n
Re-start the managed server. Point your debugger at the debug port (1044 in the example above).
If the managed server is being started from a script, the debug arguments should be added to the startup script, instead of within the Admin Console.

7 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. This comment has been removed by a blog administrator.

    ReplyDelete
  4. This comment has been removed by a blog administrator.

    ReplyDelete
  5. I don’t have a website yet, so I just put yours down because this is the one I’m on now. My questions is: I know Bluehost is having that $3.49 a month deal right now, until October 31st, but what about after October 31st? Because of your post I am considering starting my own blog and I want to take my time learning about it and saving money to pay for all this protection and CommentLuv and themes and whatnot. So, after Oct. 31st how much is it usually?


    Harold Burton

    ReplyDelete
  6. Wow this is a lot of information and its so helpful! I’ve been wanting to start a blog for a while now but it is sort of a pipe dream. I am currently a college student and I don’t really have any more than 15 or 20 hours to put into it a week until we hit summers. Is it even worth it.
    Joseph Donahue

    ReplyDelete
  7. It is my great pleasure to visit your website and to enjoy your excellent post here. I like that very much. That is very kind of you to do this for us. Thank you very much. If you are looking for mac cosmetics , here is the right place. We are engage in mac comestic
    Kelly Hubbard

    ReplyDelete