-server选项对HotSpot JVM有什么影响? [英] What's the effect of -server option for the HotSpot JVM?

查看:171
本文介绍了-server选项对HotSpot JVM有什么影响?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到任何清晰的文档来说明在启动Sun HotSpot JVM时通过-server选项的确切效果.

I cannot find any clear documentation about the exact effect of passing the -server option when launching a sun HotSpot JVM.

任何人都可以总结一下它的作用吗?

Can anybody sum-up what it does?

推荐答案

使用-server,JVM将更积极地编译热点(即,经常执行的部分代码),因此,编译器将花费更多时间来进行编译.这样做.这不是问题,因为仅当进程运行较长时间(例如,在服务器上)时才使用此选项.

With -server the JVM will compile hotspots (i.e. parts of the code that are often executed) more aggressively, and as a consequence the compiler will take more time to do so. This is not a problem since you only use this option when your processes run for extended periods of time (e.g. on a server).

使用-client时,完成的优化更加轻松快捷,因为在运行客户端应用程序时,当编译器启动时,您不希望长时间停顿.

When using -client, the optimizations that are done are much lighter and quicker, because you don't want long pauzes when the compiler kicks in when running a client app.

这篇关于-server选项对HotSpot JVM有什么影响?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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