“-client”的意义是什么?对于 JAVA_OPTS
我不是 JAVA_OPTS 方面的专家,但我在我的 grails 应用程序中遇到了与 Permgen 空间相关的错误。现在我收到 grails 博客的建议,将 JAVA_OPTS 设置为以下值:
JAVA_OPTS="-client -Xmx256M $JAVA_OPTS"
我确实了解除“-client”之外的其他值。它到底意味着什么?我在书上找不到它的意义。
I am not an expert on JAVA_OPTS, but I am getting an error in my grails app related to Permgen space. Now I receive a recommendation from grails blog to set JAVA_OPTS to this value:
JAVA_OPTS="-client -Xmx256M $JAVA_OPTS"
I do understand the other values except '-client'. What does it really mean? I can't find the significance of it in books.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
-client
和-server
选项旨在优化客户端和服务器应用程序的性能;默认值因平台而异,通常面向客户端的平台(Windows、MacOS)默认获取客户端 VM,而面向服务器的平台(Linux、Windows Server)通常默认获取服务器 VM。更多信息请参见:http://download.oracle .com/javase/6/docs/technotes/guides/vm/index.html基本上,客户端 VM 经过优化,可以快速启动并使用更少的内存,而服务器 VM 则设计为启动后获得最大性能 -向上。
The
-client
and-server
options are intended to optimize performance for client and server applications; the default varies by platform, where typically client-oriented platforms (Windows, MacOS) get the client VM by default, and typically server-oriented platforms (Linux, Windows Server) get the server VM by default. More information is available here: http://download.oracle.com/javase/6/docs/technotes/guides/vm/index.htmlBasically, the client VM is optimized to start up quickly and use less memory, while the server VM is designed for maximum performance after start-up.
通常有
-server
和-client
,-client
启动速度比-server
更快。现在,在某些版本中,例如AMD64版本,它什么都不做,只有服务器版本。
Usually, there is
-server
and-client
,-client
starts faster than-server
.Nowadays, in some versions, like AMD64 version, it does nothing, there is only server version.