In Java development on Windows there are two different transports that can be used while debugging.
What are the advantages of using Socket transport on the same computer where the app is running?
I know Socket can work on a remote computer. But I am trying to figure out if it makes a difference on my local dev box vs Shared memory?
Thank you.
UPDATE: I am using Intellij IDEA.
Shared memory will be faster :-)
The only advantage of sockets on same machine I can think of is that you have the same, universal debugging protocol, so when you deploy your app to a remote server the only visible change will be the ip.
The advantage of using Socket transport on the same machine is to ignore incompatibilities between the IDE JDK and the application's (or web-application) JDK.
Example:
Connect to a application that run on JDK32-bit will fail if the IDE is running a JDK64-bit using shared memory. In this case:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With