Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Troubleshooting Guide

- Previous: Server Will Not Start on Windows (Port Conflict)
- Next: Two Server Instances Bind to Same Port on Windows

# Port Conflicts Debugging Multiple Instances on the Same Server

## Description

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

## Solution

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:

- Before:

      debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,
      suspend=n,address=9009"

- After:

      debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,
      suspend=n"

- Previous: Server Will Not Start on Windows (Port Conflict)
- Next: Two Server Instances Bind to Same Port on Windows

- © 2010, Oracle Corporation and/or its affiliates