将查看器选择与当前编辑器链接起来的问题 - Eclipse
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7315019/
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
problem in linking viewer selection with current editor - Eclipse
提问by Diny
I often get this error "Operation linking viewer selection with current editor finished with errors"in Eclipse Galileo.
我经常在 Eclipse Galileo 中收到此错误“将查看器选择与当前编辑器链接的操作以错误结束”。
Once this error pops up no UI events is working in the IDE , i cant even able to close it also. Every time i have to go to task manager to stop the process , after this IDE works fine for some 5 min and again it display the same error as mentioned above.
一旦出现此错误,IDE 中没有任何 UI 事件正在运行,我什至无法关闭它。每次我必须去任务管理器停止进程时,在这个 IDE 工作正常大约 5 分钟后,它再次显示与上面提到的相同的错误。
i don't know what is happening , can you guys please help.
我不知道发生了什么,请你们帮忙。
采纳答案by Snehal Masne
PermGen is the permanent generation of objects in the VM (Class names, internalized strings, objects that will never get garbage-collected). An easy, if somewhat memory-hungry fix is to enlarge the maximum space for these objects by adding
PermGen 是 VM 中对象的永久代(类名、内部化字符串、永远不会被垃圾收集的对象)。一个简单的,如果有点内存饥渴的解决方法是通过添加来扩大这些对象的最大空间
-XX:MaxPermSize=128M
as an argument to the JVM when starting Eclipse. The recommended way to do this is via your eclipse.ini file.
在启动 Eclipse 时作为 JVM 的参数。推荐的方法是通过 eclipse.ini 文件。
If you are getting OutOfMemoryErrors while running Eclipse, the VM can be told to let the heap grow to a larger amount by passing the -vmargs command to the Eclipse launcher.
如果您在运行 Eclipse 时遇到 OutOfMemoryErrors,可以通过将 -vmargs 命令传递给 Eclipse 启动器来告诉 VM 让堆增长到更大的数量。
-vmargs
-Xms512m
-Xmx1024m
Alternatively, you can invoke the Eclipse executable with command-line arguments directly, as in
或者,您可以直接使用命令行参数调用 Eclipse 可执行文件,如
eclipse [normal arguments] -vmargs -XX:PermSize=512M -XX:MaxPermSize=1024M -Xmx1024M [more VM args]
回答by Vitaly Ivus
Just switch your Project Explorer to the Flat package presentation in Eclipse. It works :)
只需将您的 Project Explorer 切换到 Eclipse 中的 Flat 包演示。有用 :)
see details here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=530450#c7
在此处查看详细信息:https: //bugs.eclipse.org/bugs/show_bug.cgi?id=530450#c7
回答by Jason
Even with recent versions of Eclipse and Flat Package presentation, if you have a lot of large projects loaded this can still be a problem.
I've found however that if you break up your projects into working sets and minimise the amount of projects/tree nodes open by selecting a working set it can really speed up Eclipse and mitigate this problem.
即使使用最新版本的 Eclipse 和 Flat Package 演示,如果您加载了大量大型项目,这仍然是一个问题。
然而,我发现如果您将项目分解为工作集并通过选择工作集来最小化打开的项目/树节点的数量,它可以真正加速 Eclipse 并缓解这个问题。