开发工具eclipse优化JVM参数eclipse.ini文件配置

eclipse开发环境伴随着我们每天的工作(IDA、NetBean除外)


eclipse优化提速目标:

1、加快eclipse启动速度。

2、eclipse敲代码对象.函数()的时候减少停顿时间、卡顿频率、假死超长时间等待。

3、eclipse界面选项设置、打开源码文件时减少顿时间、卡顿频率、假死超长时间等待。


开发环境eclipse的eclipse.ini内存参数配置影响着我们的开发效率

修改文件:

安装目录/eclipse.ini   

机器环境:PC组装机、CPU I5-4590、4核、8G内存

扫描二维码关注公众号,回复: 905209 查看本文章


以下是eclipse.ini文件全部内容:(重点关注 -server 及其后面的内容)


-startup

plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar
--launcher.library
C:/Users/Administrator/.p2/pool/plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
-showsplash
org.eclipse.platform
--launcher.appendVmargs
-Declipse.p2.max.threads=10
-Doomph.update.url=http://download.eclipse.org/oomph/updates/milestone/latest
-Doomph.redirection.index.redirection=index:/->http://git.eclipse.org/c/oomph/org.eclipse.oomph.git/plain/setups/


-server 
-Xss228K 
-Xms1500m 
-Xmx1500m 
-XX:MetaspaceSize=386m 
-XX:MaxMetaspaceSize=386m 
-XX:MaxDirectMemorySize=512m 
-XX:InitialCodeCacheSize=32m 
-XX:ReservedCodeCacheSize=256m 
-XX:MinMetaspaceFreeRatio=40 
-XX:MaxMetaspaceFreeRatio=70 
-XX:-UseLargePagesInMetaspace 
-XX:InitialCodeCacheSize=96m 


-XX:+UseG1GC 
-XX:G1HeapRegionSize=1m 
-XX:MaxGCPauseMillis=250 
-XX:GCPauseIntervalMillis=251 
-XX:ParallelGCThreads=2 
-XX:ConcGCThreads=1 
-XX:NewRatio=2 
-XX:SurvivorRatio=8 
-XX:TargetSurvivorRatio=50 
-XX:InitialTenuringThreshold=7 
-XX:MaxTenuringThreshold=15 
-XX:G1ReservePercent=10 


-Ddruid.registerToSysProperty=true 
-XX:+UseTLAB 
-XX:+ResizeTLAB 
-XX:TLABSize=128k 
-XX:TLABRefillWasteFraction=100 
-XX:CompileThreshold=1000 
-XX:+BackgroundCompilation 
-XX:LargePageSizeInBytes=4m 
-XX:-OmitStackTraceInFastThrow 
-XX:+DisableExplicitGC 
-XX:-ExplicitGCInvokesConcurrent 
-XX:+UnlockExperimentalVMOptions 
-XX:+AggressiveOpts 
-XX:+UseBiasedLocking 
-XX:+UseFastAccessorMethods 
-XX:+OptimizeStringConcat 
-XX:+UseCompressedOops  
-XX:+ScavengeBeforeFullGC 
-XX:+AlwaysPreTouch 
-XX:+UseGCOverheadLimit 
-XX:+UseThreadPriorities 
-XX:+UseCodeCacheFlushing 
-XX:+DoEscapeAnalysis 
-XX:+UseStringDeduplication 
-XX:+UseBiasedLocking 
-XX:BiasedLockingStartupDelay=0 
-XX:+EliminateLocks 
-XX:+Inline 
-Xshare:off 
-Xverify:none 


-XX:+UnlockCommercialFeatures 
-XX:+FlightRecorder 
-XX:FlightRecorderOptions=loglevel=info 


-XX:ErrorFile=D:/jvm/eclipse/gc_error_crash.log 
-XX:HeapDumpPath=D:/jvm/eclipse 

猜你喜欢

转载自blog.csdn.net/sinlff/article/details/62058016