Various Ways to Remove Web Logic from Debug PortAugust 23, 2020 by Larry Thomas
Here are some simple techniques to help you solve the debug port web logic problem.
There is no standard debug port for Weblogic. When starting Weblogic, you need to add the following parameter to your startup script. You can specify any port in the address and use that port (eg 4000) of Eclipse for remote debugging.
Hello everyone, and welcome to the new series of articles that Link Consulting's technical expert team will be releasing for Oracle Fusion Middleware in the coming months.
Introduction To Remote Debugging
Remote debugging uses TCP / IP communication between the JVM you are debugging and the tool of your choice to manage the debugging session.
There are two steps to debug a Weblogic instance using JDeveloper. First enable debugging on the JVM that Weblogic is running on, then configure JDeveloper to connect to the JVM.
Step 1. Enable Remote Debugging On The Weblogic Server
We usually start Weblogic in development environments using the provided startWeblogic.sh startup script. Fortunately, this script already has the ability to run in debug mode.
The supplied startup scripts use port 8453 by default for debugging. If you want to use a different port, just set DEBUG_PORT as your environment variable.
In 12c, you can create / modify the $ DOMAIN_FOLDER / bin / setUserOverrides.sh file and add the required rewrite options. This is the file you should always use forAdding / changing launch parameters. If you are installing a patch or update, it should not be changed.
If you have multiple managed servers in your domain, you need to set different debug ports for each, otherwise only the first server will start. Indeed, the JVM refuses to start if the port is already in use. You can use the SERVER_NAME variable for this.
There is no setUserOverrides.sh in 11g. However, this can be added and executed at startup by modifying $ DOMAIN_FOLDER / bin / setDomainEnv.sh. This way you are safe when fixing or updating.
This is probably the easiest way to add debug flags, but the servers must be started by the node manager, including the administration server.
In the Weblogic console, select Environment-> Server from the left menu, then select the server for which you want to add debug flags from the list. Finally, select "Start Server".