我需要在eclipse中運行我的程序,並且我希望通過增加eclipse的內存大小來加速進程,但是我對使用哪些設置感到困惑。我應該在這個系統上使用什麼內存設置來進行日食?
這是我的系統:
Model Name: MacBook Air
Model Identifier: MacBookAir3,2
Processor Name: Intel Core 2 Duo
Processor Speed: 1.86 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 6 MB
Memory: 4 GB
Bus Speed: 1.07 GHz
,這是我目前的Eclipse的.ini:
-startup
../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx_1.1.101.v20120109-1504
-product
org.eclipse.epp.package.java.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
-XX:MaxPermSize=512m
-Xms1536m
-Xmx1536m
-Xdock:icon=../Resources/Eclipse.icns
-XstartOnFirstThread
-Dorg.eclipse.swt.internal.carbon.smallFonts
我應該在XX,-Xms和XMX使用什麼樣的?
感謝
認真嗎?他在4g機器上運行,並且你建議他用3g Xms啓動Eclipse?......除非你沒有在該機器上運行其他任何東西,否則這種方法效果不佳。 – pcalcao 2012-07-27 14:42:19
你是對的 - 那麼這些選項應該更好的性能-Xms1g -Xmx1g -Xmn256m -XX:MaxPermSize = 256M -XX:ReservedCodeCacheSize = 256m -XX:ThreadStackSize = 2048 -XX:+ HeapDumpOnOutOfMemoryError -XX:+ UseConcMarkSweepGC -XX: + UseParNewGC -XX:+ UseFastAccessorMethods -XX:CMSInitiatingOccupancyFraction = 85 -XX:+ UseCMSInitiatingOccupancyOnly -XX:+ CMSClassUnloadingEnabled -XX:+ CMSParallelRemarkEnabled -XX:+ UseNUMA -XX:-UseBiasedLocking -XX:+ UseTLAB -XX:+ DoEscapeAnalysis -XX :+ UseCompressedOops -XX:+ TieredCompilation -XX:+ OptimizeStringConcat -XX:+ AlwaysPreTouch – 2012-07-27 14:44:04