eclipse.ini中的参数XXMaxPermSize、vmargs、Xms和Xms的用途,它们有什么作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27528278/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Purpose of the parameters XXMaxPermSize, vmargs, Xms and Xms in eclipse.ini, what do they do
提问by Mohammed Ali
I was developing an App. I had to modify my eclipse.ini so I wanted to know the purpose and meaning of these parameters XXMaxPermSize, vmargs, Xms and Xms
, in order to correctly use them.
I am using eclipse 3.8 on ubuntu 14.04, with java 7.
我正在开发一个应用程序。我不得不修改我的 eclipse.ini 所以我想知道这些参数的目的和含义XXMaxPermSize, vmargs, Xms and Xms
,以便正确使用它们。我在 ubuntu 14.04 上使用 eclipse 3.8,使用 java 7。
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Xms40m
-Xmx384m
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=/usr/share/eclipse/dropins
回答by Mark W
Like Greg says, everything after -vmargs are VM args which are supplied to the JVM when an application starts. -Xmx is the maximum heap size, -Xms is the initial heap size, and the launcher.XXMaxPermSize is presumably an argument to the eclipse executable. This increases the size of the permagen space. I suspect this argument only really works pre java 8, as permagen was eliminated in 8.
正如 Greg 所说,-vmargs 之后的所有内容都是 VM args,它们在应用程序启动时提供给 JVM。-Xmx 是最大堆大小,-Xms 是初始堆大小,并且 launcher.XXMaxPermSize 大概是 eclipse 可执行文件的参数。这增加了永久空间的大小。我怀疑这个论点只在 java 8 之前才真正有效,因为 permagen 在 8 中被淘汰了。
回答by Erdin? Ta?k?n
Java official documentation will help you http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html
Java官方文档会帮助你 http://www.oracle.com/technetwork/java/javase/gc-tuning-6-140523.html