Sun GlassFish Enterprise Server 2.1 Troubleshooting Guide

Port Conflicts Debugging Multiple Instances on the Same Server


Port conflict errors can occur when debugging multiple instances on the same server that are part of the same cluster.


Modify the domain.xml file to remove the address attribute from the -Xrunjdwp option in the java-config element for the cluster. This results in the JVM choosing a random debug port for the instance. The port number chosen for the instance is displayed in the server log when it is started; for example: