Target specific JVM process?

I have a system on which two JVM processes are running. It appears that IntelliJ is attaching to the JVM process I don't want to debug.  Is there any way to specify which JVM instance should be the target?

Thank you in advance for your assistance -



How are you attaching the debugger? Shared memory or sockets?


Using sockets.

Anything else I can supply to you to help here?


Hi Jordan,

Your applications must be configured for using particular port for accepting remote debugging connections. I.e. you should have two applications that listen for different ports. Also you should specify target host/port at 'remote debug' IJ configuration.

Regards, Denis


Please sign in to leave a comment.