Generally there are many situation where we need to set the Weblogic server in debug mode and start .Example the Weblogic server is taking long time and we would like to know what is happening on the the server that causes the slowness .
There will be 2 type of scenarios one the Weblogic failed to start .let say Managed server failed to start so you will not have admin console to add from console . In this case you have to do it from the scripts .
Enabled Weblogic Debug can be achieved in 2 ways . 1 add the below argument s from Weblogic Admin server .2 Add it in the startup script by append JAVA arguments .
#echo "Enabling Debug on Weblogic " JAVA_OPTIONS="-Xdebug -Djava.compiler=NONE -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=50001,suspend=n $JAVA_OPTIONS"
You can give any port it may not be necessary 50001
Add the above in every start script that we intended to start in Debug mode . like Admin or managed server etc . Once the JVM is tarted you can see these in process to make sure the parameters are taken consideration .
To add from the console navigate to Server Start’ properties
Add the following to the ‘Arguments’ field. The port used (50001) should be available on the node:
Restart each managed server where the above is added