在 Eclipse 中保存缓慢
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6042331/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Slow save in Eclipse
提问by mikipero
I'm using Eclipse 3.5, with Java 6u20, Tomcat 6.0.28, and I have a big problem: Everything worked normal, and somehow (I don't know how) Eclipse started to be very slow.
我正在使用 Eclipse 3.5、Java 6u20、Tomcat 6.0.28,但我遇到了一个大问题:一切正常,但不知何故(我不知道如何)Eclipse 开始变得很慢。
When I edit some file, Eclipse freezes, and show me a info window, saying Saving.........
当我编辑某个文件时,Eclipse 冻结,并向我显示一个信息窗口,上面写着正在保存.......
And that last for about a minute or two, and than tomcat start to publish files. Till recently this worked ok (everything was finished in 3 seconds).
这持续大约一两分钟,然后 tomcat 开始发布文件。直到最近这一切正常(一切都在 3 秒内完成)。
I don't know what has been changed in project, and I have tried using different eclipse, tomcat, Java,....
不知道项目改了什么,我试过用不同的eclipse,tomcat,Java,....
When I turn on System processes it shows a system process: System: Updating status for Tomcat....
当我打开系统进程时,它会显示一个系统进程:系统:正在更新 Tomcat 的状态....
What could be wrong? Any hint guys?
可能有什么问题?有什么提示吗?
回答by mikipero
To tell you what solved the problem: We installed Eclipse 3.6 and there we turned on system processed in Process View. Above process System: Updating status for Tomcat... stood process Calculating Decorations.
告诉您是什么解决了问题:我们安装了 Eclipse 3.6,并在那里打开了在 Process View 中处理的系统。以上进程系统:正在更新 Tomcat 的状态...站在进程计算装饰。
We turned off all decoration, except SVN decoration (Window-Preferences-Label decorations) and saving works fine now.
我们关闭了所有装饰,除了 SVN 装饰(窗口-首选项-标签装饰),现在保存工作正常。
Apparently there is some limit in number of files of project above which Eclipse is behave strange?
显然,在 Eclipse 之上的项目文件数量有一些限制,它的行为很奇怪?
回答by user508546
My saves got slow after installing egit. I uninstalled this, and things are back to normal.
安装 egit 后,我的保存速度变慢了。我卸载了这个,一切恢复正常。
回答by Dennie
I was experiencing slow saves of about 2 seconds on some Java projects in Eclipse. On other projects saves were performed instantly. Removing all breakpoints resolved the issue.
我在 Eclipse 中的一些 Java 项目上遇到了大约 2 秒的缓慢保存。在其他项目上,保存是立即执行的。删除所有断点解决了问题。
回答by Jigar Naik
I also had the same problem, during saving I could see the sonarlint processing was taking time so I right click on project properties, sonarlint -> uncheck Run SonarLint Automatically.
我也遇到了同样的问题,在保存期间我可以看到 sonarlint 处理需要时间,所以我右键单击项目属性,sonarlint -> 取消选中自动运行 SonarLint。
Basically you can see what's causing the slowness in progress view of eclipse and try to disable that.
基本上,您可以看到导致 eclipse 进度视图缓慢的原因并尝试禁用它。