我在 http://shootout.alioth.debian.org/ 中看到了 Java 服务器用于编程语言基准。 我知道 -server 是运行 JVM 的参数。我想知道:
我们什么时候使用-server参数,它是如何工作的? 我们可以在java桌面应用程序中使用这个参数吗?
谢谢。
最佳答案
它只是选择“服务器热点虚拟机”。见 documentation (Solaris/Linux)对于 java
。
根据维基百科:
Sun's JRE features 2 virtual machines, one called Client and the other Server. The Client version is tuned for quick loading. It makes use of interpretation, compiling only often-run methods. The Server version loads more slowly, putting more effort into producing highly optimized JIT compilations, that yield higher performance.
关于java - 什么是 JVM -server 参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5272674/