remote debug configuration in weblogic console

I have seen in many forums and blogs on how to remote debug a Weblogic Admin or Managed Servers. Most of them suggested to modify the files setDomainEnv.cmd or to modify the Startup aScripts like startWeblogic.cmd or startManagedWeblogic.cmd.But these modifications require change of multiple files in case if need to debug both Admin and Managed Servers.There is an easy way you can achieve this through Admin Console

Login to the Weblogic Console ,Click on Servers and select the respective Server and go to the Server Start tab like shown below.


In the Arguments Section paste the  line along with other arguments if any ,like below.Here address is any port which is free and can be used for remote debugging.I have used 8444.

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8444,server=y,suspend=n -Djava.compiler=NONE


remote debug arguments




























Now restart your Weblogic Server you will see the message  in the startup of the server,"Listening for transport dt_socket at address: 8444".You are done with the settings in Weblogic !!.

After this from your IDE set the Debug Configurations.For Eg :
In Eclipse- Debug Configurations,Remote Java Application - New and specify the same port which you have given in the arguments(8444).

remote debug eclipse settings


Comments

Popular posts from this blog

BCC site status inaccessible Agent Production in error state

Weblogic Issues during EAR Deployment Exception in AppMerge flows progression

DUseSunHttpHandler=true weblogic.net.http.SOAPHttpsURLConnection Weblogic/Java HttpHandler issues