与Oracle J2SE 1.7相对应的JVM选项,用于Eclipse'kepler'4.3 [英] Equivalent JVM options with Oracle J2SE 1.7, for Eclipse 'kepler' 4.3

查看:66
本文介绍了与Oracle J2SE 1.7相对应的JVM选项,用于Eclipse'kepler'4.3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试在运行64位基于Debian的低功率上网本(双核1.66MHz Atom N455)上提高Eclipse"Kepler" rel-4.3 IDE的性能.

Trying to improve Eclipse 'Kepler' rel-4.3 IDE's performance on a rather low-powered Netbook (dual-core 1.66MHz Atom N455), running 64-bit Debian based distro.

找到了以下两个之前的问题( q1 q2 ),并尝试了几种组合.

Found the following 2 previous questions (q1, q2) on SE, and tried few combinations.

$ java -version
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)

与默认的eclipse.ini以及在IcedTea中使用OpenJDK 6相比,我为eclipse.ini采用了以下设置,而不是更快地启动和操作,但感觉有些放慢了.因此,问题是,是否建议使用任何建议的操作或与Oracle Jave SE 1.7冲突?

Adopting the following settings for eclipse.ini, instead of faster startup and operation, I felt some slow-down instead, compared to the default eclipse.ini and use of OpenJDK 6 with IcedTea. So the question is, are any of the suggested operations known to be deprecated or conflict with Oracle Jave SE 1.7

尝试了新的eclipse.ini:

New eclipse.ini tried:

-nosplash
-vmargs
-Xincgc
-Xss500k
-Dosgi.requiredJavaVersion=1.6
-Xms64m
-Xmx200m
-XX:NewSize=8m
-XX:PermSize=80m
-XX:MaxPermSize=150m
-XX:MaxPermHeapExpansion=10m
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=70
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseParNewGC
-XX:+CMSConcurrentMTEnabled
-XX:ConcGCThreads=2
-XX:ParallelGCThreads=2
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=5
-XX:GCTimeRatio=49
-XX:MaxGCPauseMillis=20
-XX:GCPauseIntervalMillis=1000
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSClassUnloadingEnabled
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+AggressiveOpts
-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses

原始eclipse.ini:

Original eclipse.ini:

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20130521-0416
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-XX:MaxPermSize=256m
-Xms40m
-Xmx512m

推荐答案

我遇到了同样的问题.我认为这更多的是您的Java版本不建议使用的功能"问题,因为它将大多数命令传递给了Java.开普勒帮助文件并没有具体说明您和我正在传递的许多命令,所以这就是我的想法.

I'm running into the same thing. I think it's more a "what's deprecated in your Java version" issue since it's passing most of the commands to Java. The kepler help file doesn't get to specific with a lot of the commands you and I are passing so that's what I'm thinking.

这是开普勒帮助文件http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fapi%2Fconstant-values.html

我要说的一件事是在快速阅读Interweb之后,我认为这两个不能同时使用,但是我不知道.-XX:+ UseConcMarkSweepGC-XX:+ UseParNewGC

one thing I will say is after speed reading the Interweb I think these 2 can't be used at the same time but I dunno. -XX:+UseConcMarkSweepGC -XX:+UseParNewGC

我只有我的第二个

这是我在上面阅读的地方 http://www.fasterj.com/articles/oraclecollectors1.shtml

here's where I was reading on it http://www.fasterj.com/articles/oraclecollectors1.shtml

好吧,再次阅读它似乎可以同时使用这两个

well, reading it again it looks like you can use both of those 2

也许在这里 http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/java.html

这篇关于与Oracle J2SE 1.7相对应的JVM选项,用于Eclipse'kepler'4.3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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