Java调试使用套接字vs共享内存 [英] Java debug using socket vs shared memory

查看:291
本文介绍了Java调试使用套接字vs共享内存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows的Java开发中,调试时可以使用两种不同的传输方式。





在应用程序运行的同一台计算机上使用Socket传输有什么优势?



我知道Socket可以在远程计算机上工作。但是我试图弄清楚我的本地开发框与共享内存是否有所差异?



谢谢。



更新:我正在使用Intellij IDEA。

解决方案

共享内存将更快: - )



在同一台机器上的套接字的唯一优点是我可以想到的是拥有相同的通用调试协议,所以当您将应用程序部署到远程服务器唯一可见的更改将是ip。


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.

这篇关于Java调试使用套接字vs共享内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆