4.6.8 Changing the port number of the Java debugger communication port
To change the port number of the Java debugger communication port, use the delete-system-property subcommand of the asadmin utility command to delete the port number before the change, and then use the create-system-properties subcommand to specify a new port number.
Prerequisites
-
The domain administration server (DAS) is running.
-
Application Server has been set up.
Intended users
-
System engineers
Procedure
To acquire the setting value of the system property JAVA_DEBUGGER_PORT of the Java debugger communication port and verify the port number before the change, run the list-system-properties subcommand of the asadmin utility command.
asadmin list-system-properties server_instance_name_or_cluster_name
-
In a configuration where only one Java EE server is deployed, specify the server instance name.
-
In a cluster configuration where more than one Java EE server is deployed, specify the cluster name.
When this command is run, the result is displayed as follows:
JAVA_DEBUGGER_PORT=29010 : Command list-system-properties executed successfully.
- Reference note
-
If the system property (JAVA_DEBUGGER_PORT) is set, perform steps 2 and 3. If this property is not set, perform step 3.
-
To delete the system property JAVA_DEBUGGER_PORT, run the delete-system-property subcommand of the asadmin utility command.
asadmin delete-system-property --target server_instance_name_or_cluster_name JAVA_DEBUGGER_PORT
-
In a configuration where only one Java EE server is deployed, specify the server instance name for the --target option.
-
In a cluster configuration where more than one Java EE server is deployed, specify the cluster name for the --target option.
When this command is run, the result is displayed as follows:
Command delete-system-property executed successfully.
-
To set a new port number for the system property JAVA_DEBUGGER_PORT, run the create-system-properties subcommand of the asadmin utility command.
asadmin create-system-properties --target server_instance_name_or_cluster_name JAVA_DEBUGGER_PORT=changed_port_number
-
In a configuration where only one Java EE server is deployed, specify the server instance name for the --target option.
-
In a cluster configuration where more than one Java EE server is deployed, specify the cluster name for the --target option.
When this command is run, the result is displayed as follows:
Command create-system-properties executed successfully.
-