什么是JVM -server参数? [英] What is JVM -server parameter?
问题描述
我在 http://shootout.alioth.debian.org/中看到了Java服务器编程语言基准. 我知道-server是用于运行JVM的参数.我想知道:
I saw Java -server in http://shootout.alioth.debian.org/ for programming language benchmark. I know that -server is a parameter for running JVM. I want to know:
何时使用-server参数以及它如何工作? 我们可以在Java桌面应用程序中使用此参数吗?
When we use -server parameter and how it work? Can we use this parameter for java desktop application?
谢谢.
推荐答案
它只是选择服务器热点VM".请参阅文档(Solaris/Linux)中的java
.
It just selects the "Server Hotspot VM". See documentation (Solaris/Linux) for java
.
根据Wikipedia:
According to Wikipedia:
Sun的JRE具有2个虚拟机, 一个叫客户,另一个叫客户 服务器.客户端版本已调整 快速加载.它利用 解释,仅编译 经常运行的方法.服务器版本 加载更慢,更费劲 产生高度优化的JIT 汇编,从而产生更高的 性能.
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.
请参阅: http://en.wikipedia.org/wiki/HotSpot
这篇关于什么是JVM -server参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!