Eclispe 性能优化

我目前Eclipse所在的机器环境是windows x32, 4GBRAM, CPUx2, JDK1.7 x86,

具体参数意义请自行查阅, 根据自己机器内存环境设定

32位机器下查看JVM支持的最大内存:

java -Xmx1200M -version

 


-ea
-server
-Xmx900m
-Xms900m
-Xmn120m
-Xverify:none
-Xnoclassgc
-XX:PermSize=256m
-XX:MaxPermSize=256m
-XX:CompileThreshold=3000
-XX:ReservedCodeCacheSize=96m
-XX:+UseCodeCacheFlushing
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+DisableExplicitGC
-XX:+UserLargePages
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+UseCMSCompactAtFullCollection
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=85
-Dcom.sum.management.jmxremote
-Dosgi.requiredJavaVersion=1.6

64位,稍大一点内存用的:

-ea

-server
-Xmx1536m
-Xms1536m
-Xmn200m
-Xverify:none
-Xnoclassgc
-XX:PermSize=256m
-XX:MaxPermSize=256m

-XX:CompileThreshold=3000
-XX:ReservedCodeCacheSize=96m
-XX:+UseCodeCacheFlushing
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+UseCompressedOops
-XX:+DisableExplicitGC

-XX:+UserLargePages
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+UseCMSCompactAtFullCollection
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=85

 

intelliJ同样适用:

-ea

-server
-Xmx1536m
-Xms1536m
-Xmn200m
-Xverify:none
-Xnoclassgc
-XX:PermSize=256m
-XX:MaxPermSize=256m

-XX:CompileThreshold=3000
-XX:ReservedCodeCacheSize=96m
-XX:+UseCodeCacheFlushing
-XX:SoftRefLRUPolicyMSPerMB=50
-XX:+UseCompressedOops
-XX:+DisableExplicitGC
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:+UseCMSCompactAtFullCollection
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSInitiatingOccupancyFraction=85
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djsse.enableSNIExtension=false

 

 

Windows使用大页面支持
run -> gpedit.msc
computer configuration -> windows settings -> security setting -> local policy -> User Right Assignment
duble click Lock Page in Memory,
add your own group or user name
restart system,
then -XX:+UseLargePages would be enabled.
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值