Eclipse 内容有助于降低大型项目的速度

发布于 2024-10-05 11:38:35 字数 384 浏览 7 评论 0原文

我在 Eclipse 中的一个大型 java 项目中遇到了 Java Content Assist 极其缓慢的问题。该项目有很多依赖jar(>100)。我不太确定缓慢是否是由于依赖的 jar 造成的,但我猜情况就是如此。

你们中有人遇到过类似的问题吗?我将激活延迟更改为 500 毫秒以减轻痛苦,但我仍然收到“内容辅助问题”弹出窗口,建议禁用 Mylyn。我还设置了以下超时标志。

-Dorg.eclipse.jdt.ui.codeAssistTimeout=60000

似乎没有帮助。

-Xmx 设置为 900m。我使用的是带有 4 GB RAM 的双核 3 GHz Windows XP 32 位机器。

我欢迎您提出任何建议或解决方案。

谢谢。

I am facing extreme slowness in Java Content Assist with a large java project in Eclipse. The project has a lot of dependent jars (>100). I'm not really sure if the slowness is due to the dependent jars, but I'm guessing thats the case.

Have any of you faced similar issues? I changed the Activation Delay to 500ms to reduce the pain but I still get the "Problems with Content Assist" pop up that suggest disabling Mylyn. I also set the following timeout flag.

-Dorg.eclipse.jdt.ui.codeAssistTimeout=60000

It does not seem to have helped.

-Xmx is set to 900m. I am using a dual core 3 GHz Windows XP 32-bit box with 4 GB RAM.

I would welcome any suggestions or solutions you may have.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

好多鱼好多余 2024-10-12 11:38:36

Eclipse 有一个错误,如果您的工作区中有大型复杂的 Jars,Content Assist 将减慢速度直至无法使用。请参阅我的问题了解更多信息

该错误已被修复,但我无法判断它是否在当前版本中。

Eclipse has a bug whereby if you have large complex Jars in your workspace the Content Assist will slow down to the point of being unusable. See my question here for more.

The bug has been fixed but I can't tell if it's in the current release.

谜兔 2024-10-12 11:38:36

你用的是迈林吗?如果没有...禁用 Mylyn 内容辅助将对您有很大帮助。

Are you using Mylyn? If not... disabling the Mylyn content assist will help you a lot.

梦断已成空 2024-10-12 11:38:36

我正在开发一个远程系统项目,其中 JAR 是从远程系统的 /lib 文件夹配置的。我刚刚在本地导入了所有相关的 JAR,将构建路径配置为使用这些本地 JAR 而不是远程 JAR,而 Bob 是你的叔叔!问题就消失了!

I was working on a Remote Systems project where JARs were configured from the remote system's /lib folder. I just imported all relevant JARs locally, configured the build path to use these local JARs instead of the remote ones, and Bob's your uncle! The issue is gone!

仄言 2024-10-12 11:38:35

如果项目中的任何 jar 或内容不在快速本地磁盘上,请将它们放在快速本地磁盘上。

If any of those jars or the content in the project are not on a fast, local disk, put them on a fast, local disk.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文