VMWare - 网络应用程序
我正在使用Java开发一个分布式文件系统,目前我无法提供很多细节。 我需要在 Linux 上测试一些东西,我将使用 WMWare 服务器并在虚拟机中安装 Linux。 模拟网卡和真实的以太网接口有什么区别吗?
I am developing a distributed file system using Java, I cannot give many details at this moment. I need to test some things on Linux, I will use WMWare server an install Linux inside a virtual machine. Is there any difference between the simulated network card and a real ethernet interface?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
VMware 非常适合这类事情。 正如 RichieHindle 所说,除了性能之外,应该没有什么区别,特别是如果您计划在同一台服务器上运行多个虚拟机。
如果您想要可用的性能基准测试结果,请使用真实的硬件。
Java 是它自己的“VM”...在客户操作系统的虚拟化层之上...在 VMware 之上...在虚拟执行模型 CPU 上。 这里进行一点虚拟化,那里添加一点虚拟化,很快我们就可以讨论一些真正的抽象了!
VMware is great for this sort of thing. There should be no difference except, as RichieHindle said, in performance, especially if you're planning to run multiple vms on the same server.
Use real hardware if you want usable performance benchmark results.
Java is it's own 'VM'... on top of a layer of virtualization in the guest OS... on top of VMware... on a virtual execution model CPU. Take a little virtualization here, add a little virtualization there, and pretty soon we're talking about some real abstraction!
从应用程序代码的角度来看,不,没有区别。
唯一可见的差异可能在于性能 - 响应速度和确切的时间可能不同,但你说的是微秒。
有如此多的通用软件可以在虚拟机下完美运行,几乎可以回答“虚拟机与真实机器有什么不同吗?”这样的问题。 在应用程序级别是“否”。
(如果您谈论的是内核级驱动程序软件,情况可能会有所不同。)
From the point of view of application code, no, there's no difference.
The only visible difference might be in performance - the speed of response and exact timings of things might be different, but you're talking microseconds.
There's so much general-purpose software that works flawlessly under VMs that the answer to almost every question of the form "Are VMs different from real machines?" at the application level is "No".
(Things might be different if you were talking about kernel-level driver software.)