2
votes

I have defined my remote debugging port in the Java Runtime variables but what is the behavior when multiple JVMs run on the same host with that configuration.

After the first instance takes that port will the other JVMs not be reachable or is there a fallback to determine another available port?

Is there any way to determine this port or configure additional ports to be used?

My Java Runtime Settings:

-Xms64m -Xmx256m -agentlib:jdwp=transport=dt_socket,address=58000,server=y,suspend=n

Eclipse settings

2

2 Answers

1
votes

Every JVM needs a unique port number assigned.

0
votes

Only 1 debugger can attach on a single port. I do not see why you would need to debug simultaneously the same code many times, you will be confused.

What I would propose to you is:

  1. Debug on first JVM
  2. Once done, detach first JVM
  3. Debug on 2nd JVM .....