|
|
发表于 2008-6-4 22:09:52
|
显示全部楼层
Post by somebody;1858764
发现portage 里装的eclipse3.3.1启动的时候已经添加过arli兄所说的参数了。
rory@gentoo ~ $ ps aux|grep java
rory 5575 0.0 0.2 99164 4368 ? S 22:14 0:00 /usr/lib/eclipse-3.3/eclipse -vmargs -Xms128m -Xmx256m -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith -Djava.library.path=/usr/lib
rory 18125 42.3 21.8 1145284 442992 ? Sl 23:00 4:30 /usr/lib/jvm/sun-jdk-1.6/bin/java -Xms128m -Xmx256m -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith -Djava.library.path=/usr/lib -jar /usr/lib64/eclipse-3.3/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -os linux -ws gtk -arch x86_64 -showsplash -launcher /usr/lib64/eclipse-3.3/eclipse -name Eclipse --launcher.library /usr/lib64/eclipse-3.3/plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.2.R331_v20071019/eclipse_1021.so -startup /usr/lib64/eclipse-3.3/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar -exitdata 98012 -vm /usr/bin/java -vmargs -Xms128m -Xmx256m -XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith -Djava.library.path=/usr/lib -jar /usr/lib64/eclipse-3.3/plugins/org.eclipse.equinox.launcher_1.0.1.R33x_v20070828.jar
rory 21265 0.0 0.0 5088 776 pts/0 R+ 23:11 0:00 grep --colour=auto java
我也是使用稳定版jdk 6 源自portage
但eclipse 是自己下的,下完解压到一个目录就行了, 这东西因为我这边有时要复制着走(移动版),所以没用过portage 里的,不过,看上文命令行给vm的内存太小了,试着加大看看,并且如果有用ve(visual editor) 的话,那必须使用它wiki上的patch版本,否则死机是正常的。
我的命令行参考(2G内存分了一半),也就是eclipse.ini 文件内容:
-showsplash
org.eclipse.platform
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms1024m
-Xmx1024m
-XX:MaxPermSize=128m
-XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled
-XX:+UseParallelGC
#fix bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=214092
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith |
|