Eclipse Indigo typing lag on OS X Lion

后端 未结 2 473
借酒劲吻你
借酒劲吻你 2021-02-05 16:33

I am working on a fairly large project and have recently bumped into the good old friend of mine from the 90\'s, typing lag. My setup is MacBook Pro 2.2 GHz i7 8GB with

相关标签:
2条回答
  • 2021-02-05 17:13

    Jivings was right about the root of the problem being in the eclipse.ini file.

    I am not sure what I have actually changed in the eclipse.ini after messing around with the it, since the TimeMachine does not seem to be able to save a backup of the .ini file inside the Eclipse application package (Eclipse/Contents/MacOS/eclipse.ini).

    I actually lowered the MaxPermSize and other memory values which made Eclipse run smoother. If anyone else is encountering the same problem, I suggest you try similar values and see if that works. If it doesn't, I also read that you can start eclipse once with the -clean argument, which cleans up some installation and usage history among other things. I did not do that, but it's worth a try.

    The following is my current configuration, and it works pretty well:

    -startup
    ../../../plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
    --launcher.library
    ../../../plugins/org.eclipse.equinox.launcher.cocoa.macosx.x86_64_1.1.100.v20110502
    -product
    org.eclipse.epp.package.jee.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=256m
    -Xms40m
    -Xmx512m
    -Xdock:icon=../Resources/Eclipse.icns
    -XstartOnFirstThread
    -Dorg.eclipse.swt.internal.carbon.smallFonts
    
    0 讨论(0)
  • 2021-02-05 17:20

    Try altering the settings in your eclipse.ini file. This contain the settings for the JVM and can help reduce memory issues like this.

    Example eclipse.ini:

    -data
    ../../workspace
    -showlocation
    -showsplash
    org.eclipse.platform
    --launcher.XXMaxPermSize
    384m
    -startup
    plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
    --launcher.library
    plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
    -vm
    ../../../../program files/Java/jdk1.6.0_17/jre/bin/client/jvm.dll
    -vmargs
    -Dosgi.requiredJavaVersion=1.5
    -Xms128m
    -Xmx384m
    -Xss4m
    -XX:PermSize=128m
    -XX:MaxPermSize=384m
    -XX:CompileThreshold=5
    -XX:MaxGCPauseMillis=10
    -XX:MaxHeapFreeRatio=70
    -XX:+UseConcMarkSweepGC
    -XX:+CMSIncrementalMode
    -XX:+CMSIncrementalPacing
    -Dcom.sun.management.jmxremote
    -Dorg.eclipse.equinox.p2.reconciler.dropins.directory=C:/jv/eclipse/mydropins
    

    Detailed in this question and this question.

    0 讨论(0)
提交回复
热议问题