我大约在一天半之前突然在Eclipse IDE中出现GC错误和Java堆空间错误。这使我无法完成我的工作。 IDE只会停止响应几分钟,然后开始崩溃并出现GC错误。这些问题在IDE启动大约2分钟后开始发生。
这些错误只在打开文件或进行任何代码更改时发生,即使在运行任何代码时也是如此。 “从选择中请求JavaScript AST”出现错误
我尝试了几种解决方案。我有:
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
nodeclipse.package.enide.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
512m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.8
-Xms512m
-Xmx1024m
无论我做什么,问题仍然存在。有没有人对我有任何解决方案?这个问题似乎完全独立于我的eclipse安装和工作区。
以下是我过去一小时收到的错误列表:
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.092
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.jface 4 0 2016-04-06 08:59:17.108
!MESSAGE Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png".
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:77)
...
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.108
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.boot/resources/icons/boot-icon.png".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.139
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.jface 4 0 2016-04-06 08:59:17.139
!MESSAGE Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:77)
...
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.139
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.310
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.jface 4 0 2016-04-06 08:59:17.310
!MESSAGE Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.resolve(PlatformURLPluginConnection.java:77)
...
!ENTRY org.eclipse.core.runtime 4 0 2016-04-06 08:59:17.310
!MESSAGE Invalid input url:platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif
!STACK 0
java.io.IOException: Unable to resolve plug-in "platform:/plugin/org.springframework.ide.eclipse.ui/icons/full/obj16/spring_explorer_obj.gif".
at org.eclipse.core.internal.runtime.PlatformURLPluginConnection.parse(PlatformURLPluginConnection.java:65)
at org.eclipse.core.internal.runtime.FindSupport.find(FindSupport.java:290)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 09:43:19.836
!MESSAGE Unhandled error
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.eclipse.core.internal.jobs.JobListeners.newEvent(JobListeners.java:78)
at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:149)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 09:43:34.407
!MESSAGE Unhandled error
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.eclipse.core.internal.jobs.JobListeners.newEvent(JobListeners.java:78)
at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:149)
...
!ENTRY org.eclipse.ui 4 0 2016-04-06 09:43:35.006
!MESSAGE Error occurred during status handling
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.TextLayout.setStyle(TextLayout.java:3081)
at org.eclipse.jface.viewers.StyledCellLabelProvider.updateTextLayout(StyledCellLabelProvider.java:276)
...
!ENTRY org.eclipse.ui 4 0 2016-04-06 09:44:23.621
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.TextLayout.setStyle(TextLayout.java:3081)
at org.eclipse.jface.viewers.StyledCellLabelProvider.updateTextLayout(StyledCellLabelProvider.java:276)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 09:45:08.112
!MESSAGE Unhandled error
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
!ENTRY org.eclipse.ui 4 0 2016-04-06 09:45:08.121
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.OutOfMemoryError: GC overhead limit exceeded)
at org.eclipse.swt.SWT.error(SWT.java:4491)
at org.eclipse.swt.SWT.error(SWT.java:4406)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 09:45:08.127
!MESSAGE An internal error occurred during: "Decoration Calculation".
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
!ENTRY org.eclipse.ui 4 0 2016-04-06 09:45:09.355
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.TextLayout.setStyle(TextLayout.java:3081)
at org.eclipse.jface.viewers.StyledCellLabelProvider.updateTextLayout(StyledCellLabelProvider.java:276)
...
!ENTRY org.eclipse.ui 4 0 2016-04-06 09:45:09.516
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.eclipse.swt.graphics.TextLayout.setStyle(TextLayout.java:3081)
at org.eclipse.jface.viewers.StyledCellLabelProvider.updateTextLayout(StyledCellLabelProvider.java:276)
...
!ENTRY org.eclipse.jface.text 4 0 2016-04-06 09:52:51.585
!MESSAGE Unexpected runtime error while computing a text hover
!STACK 0
java.lang.NullPointerException
at org.eclipse.core.internal.resources.File.getCharset(File.java:194)
at org.eclipse.core.internal.resources.File.getCharset(File.java:185)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 10:04:39.554
!MESSAGE An internal error occurred during: "Requesting JavaScript AST from selection".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.isErrorState(Parser.java:5557)
at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(Parser.java:5687)
...
!ENTRY org.eclipse.core.jobs 4 2 2016-04-06 10:04:39.558
!MESSAGE An internal error occurred during: "Requesting JavaScript AST from selection".
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.isErrorState(Parser.java:5557)
at org.eclipse.wst.jsdt.internal.compiler.parser.Parser.parse(Parser.java:5687)
...
!ENTRY org.eclipse.equinox.p2.metadata.repository 4 0 2016-04-06 10:11:24.908
!MESSAGE Unexpected error loading extension: org.eclipse.equinox.p2.metadata.repository.compositeRepository
!STACK 0
org.eclipse.oomph.util.ReflectUtil$ReflectionException: java.lang.OutOfMemoryError: Java heap space
at org.eclipse.oomph.util.ReflectUtil.invokeMethod(ReflectUtil.java:130)
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:344)
答案 0 :(得分:0)
某些eclipse插件效率很低,需要大量内存,尤其是在大型项目或解析合并源文件时。
所以1GB可能还不够。
如果将堆限制提高到几千兆字节并不能解决问题,那么其中一个组件可能只是内存泄漏。在这种情况下,您必须找出哪一个并为其提交错误。 这可以通过进行堆转储并分析哪些类占用大部分内存来完成。