Eclipse Indigo打字在OS X Lion上的延迟 [英] Eclipse Indigo typing lag on OS X Lion

查看:93
本文介绍了Eclipse Indigo打字在OS X Lion上的延迟的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开展一个相当大的项目,最近碰到了90年代我的好老朋友,打字滞后。
我的设置是MacBook Pro 2.2 GHz i7 8GB的SSD驱动器,迄今为止还没有任何严重的性能问题。



我增加了内存分配到 -Xmx1024m 和 - XX:MaxPermSize = 512m 。没有大量使用插件。另外,这只会发生在默认编辑器中的.java文件中。



可能是什么问题?



编辑:

我发现问题。我注意到问题只发生在编辑大型java文件时。在我的情况下,该类有1800行。



这是奇怪的,因为我没有面临同样的问题与Ubuntu上相同的eclipse设置。似乎Eclipse在Mac上无法处理我正在编辑的大量的java文件。



任何建议?



EDIT2:



我正在使用Eclipse Indigo进行Java EE的最新更新(3.7.1.X)



安装的插件:





所有插件都通过Eclipse市场安装,并更新到最新版本,除非另有说明

解决方案

Jivings <关于eclip中的问题的根源是正确的se.ini文件。



我不知道我在eclipse.ini中实际上改变了什么,因为它没有,因为TimeMachine似乎不能在Eclipse应用程序包(Eclipse / Contents / MacOS / eclipse.ini)中保存.ini文件的备份。



我实际上降低了MaxPermSize和其他内存值这使得Eclipse运行更平稳。如果其他人遇到同样的问题,我建议您尝试类似的值,看看是否有效。如果没有,我也读过,你可以用 -clean 参数启动日食一次,这样可以清除一些安装和使用历史。我没有这样做,但值得一试。



以下是我当前的配置,它的工作原理很好:

  -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


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 SSD drive and it hasn't had any serious performance issues so far.

I have increased the memory allocations to -Xmx1024m and -XX:MaxPermSize=512m. There is no heavy use of plugins involved. Also, this only happens on .java files in the default editor.

What could be the problem?

EDIT:
I found the problem. I noticed that the problem occurred only when editing large java files. In my case the class had 1800 rows.

It's weird though, since I am not facing the same problem with the same eclipse setup on Ubuntu. It seems like Eclipse on Mac just can't handle java files that big I was editing.

Any suggestions?

EDIT2:

I am using the Eclipse Indigo for Java EE with the latest updates (3.7.1.X)

Installed plugins:

All plugins are installed via Eclipse marketplace and are updated to the latest release unless stated otherwise.

解决方案

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

这篇关于Eclipse Indigo打字在OS X Lion上的延迟的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆