【问题标题】:Best memory settings for eclipse 4.2 (STS 3.1) on Windows 7 64 bit?Windows 7 64 位上 eclipse 4.2 (STS 3.1) 的最佳内存设置?
【发布时间】:2012-12-04 11:02:52
【问题描述】:

如果这个问题确实像 SO 警告我的那样过于主观,我会提前道歉。

我的工作站有 8 GB 内存并运行 Windows 7 64 位。我使用 Spring 工具套件 (3.1),但一旦我开始打开和修改 spring 配置 (.xml) 文件,STS 就会变得异常缓慢。

我已经尝试关闭“自动构建”并增加内存设置,但没有成功。

我应该如何更改我的 .ini 文件?这是我现在设置的:

-vm
C:/Program Files/Java/jdk1.7.0_07/bin/javaw.exe
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20120522-1813
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
4096M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx2048m
-XX:MaxPermSize=512m

我的同事在 IntelliJ 中运行相同的项目,没有问题。

谢谢!

【问题讨论】:

标签: eclipse performance spring


【解决方案1】:
After doing lot of research , this arguments solves my problem

-nosplash
--launcher.defaultAction
openFile
-vm
C:\Program Files\Java\jdk1.6.0_45\jre\bin\server\jvm.dll
#/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java #OS X
-vmargs
-Xincgc
-Xss1m
-Duser.name=FirstName LastName
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.6
-Declipse.p2.unsignedPolicy=allow
-Declipse.p2.MD5Check=false
-Xms128m
-Xmx1024m
-XX:NewSize=16m
-XX:PermSize=128m
-XX:MaxPermSize=400m
-XX:MaxPermHeapExpansion=20m
-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 #Doesnt work with Android see Google Code Android issue 9883
-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses
-Xverify:none

【讨论】:

    【解决方案2】:

    2gb 的堆对于 eclipse 来说已经足够了,我自己用它。我怀疑罪魁祸首是 Eclipse 4.2 Juno。它有很好的记录performance issueseclipse download site 上有一个隐藏的 3.8 Juno 版本。它具有与 Juno 4.2 相同的所有功能,但使用了更稳定和性能更高的旧 UI 组件。

    【讨论】:

      【解决方案3】:

      http://www.youtube.com/watch?v=-JC7B1a_7dQ 这是 eclipse 和 android 最佳性能的一个很好的指南

      【讨论】:

        猜你喜欢
        • 2011-03-01
        • 2012-02-20
        • 2011-04-03
        • 2011-04-01
        • 1970-01-01
        • 1970-01-01
        • 2011-09-02
        • 2013-02-12
        • 1970-01-01
        相关资源
        最近更新 更多