gpt4 book ai didi

java - Eclipse galileo 项目验证错误导致退出工作区?

转载 作者:行者123 更新时间:2023-12-02 07:47:59 26 4
gpt4 key购买 nike

我开发了动态网络项目。我多次执行该应用程序。但目前,当我尝试清理项目(项目->清理->我的项目)时,它显示出一些内部问题。项目验证失败。
这是因为 spring beans 实例化时发生了内存不足。错误信息是
堆栈跟踪是

java.lang.OutOfMemoryError: Java 堆空间 在 org.eclipse.wst.xml.core.internal.parser.XMLStructuredRegionFactory.createRegion(XMLStructuredRegionFactory.java:31)在 org.eclipse.wst.xml.core.internal.parser.XMLSourceParser.createStructuredDocumentRegion(XMLSourceParser.java:110)在 org.eclipse.wst.xml.core.internal.parser.XMLSourceParser.parseNodes(XMLSourceParser.java:358)在 org.eclipse.wst.xml.core.internal.parser.XMLSourceParser.getDocumentRegions(XMLSourceParser.java:164)在org.eclipse.wst.sse.core.internal.text.StructuredDocumentReParser._core_reparse_text(StructuredDocumentReParser.java:309)在 org.eclipse.wst.sse.core.internal.text.StructuredDocumentReParser.core_reparse(StructuredDocumentReParser.java:708)在org.eclipse.wst.sse.core.internal.text.StructuredDocumentReParser.reparse(StructuredDocumentReParser.java:1352)在org.eclipse.wst.sse.core.internal.text.StructuredDocumentReParser.reparse(StructuredDocumentReParser.java:1284)在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.updateModel(BasicStructuredDocument.java:2705)在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.internalReplaceText(BasicStructuredDocument.java:1919)在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:2415)在 org.eclipse.wst.sse.core.internal.text.BasicStructuredDocument.set(BasicStructuredDocument.java:2927)在 org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.setDocumentContent(ResourceTextFileBuffer.java:579)在 org.eclipse.core.internal.filebuffers.ResourceTextFileBuffer.initializeFileBufferContent(ResourceTextFileBuffer.java:290)在 org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:245)在 org.eclipse.core.internal.filebuffers.TextFileBufferManager.connect(TextFileBufferManager.java:113)在 org.eclipse.wst.sse.core.internal.FileBufferModelManager.getModel(FileBufferModelManager.java:656)在 org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._doCommonGetModel(ModelManagerImpl.java:569)在 org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._commonGetModel(ModelManagerImpl.java:536)在 org.eclipse.wst.sse.core.internal.model.ModelManagerImpl._commonGetModel(ModelManagerImpl.java:509)在 org.eclipse.wst.sse.core.internal.model.ModelManagerImpl.getModelForRead(ModelManagerImpl.java:1438)在 org.eclipse.wst.sse.core.internal.validate.ValidatorGroupListener.validationStarting(ValidatorGroupListener.java:72)在 org.eclipse.wst.validation.internal.ValManager$2.run(ValManager.java:847)在 org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)在 org.eclipse.wst.validation.internal.ValManager.notifyGroupListenersStarting(ValManager.java:845)在 org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:800)在 org.eclipse.wst.validation.internal.ValManager.validate(ValManager.java:667)在 org.eclipse.wst.validation.internal.ValBuilderJob$Visitor.visit(ValBuilderJob.java:298)在 org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:108)在 org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:60)在 org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)在 org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)

Java 堆空间。提前致谢。
拉克斯曼乔达里

最佳答案

您必须增加 eclipse 的内存设置。有两种方法。

1)调用eclipse时添加额外的JVM参数2)编辑eclipse.ini。这种方式不需要传递参数

打开 eclipse.ini,它可以在 eclipse 安装目录中找到。将-xmx修改为更高的值。

例如

-startup
plugins/org.eclipse.equinox.launcher_1.0.100.v20080501.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.0.100.v20080428-1330
-showsplash
org.eclipse.platform
-vm
/usr/lib/jvm/java-1.5.0-sun/jre/bin/java
-vmargs
-Xms512m
-Xmx1024m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=512M

关于java - Eclipse galileo 项目验证错误导致退出工作区?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10577834/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com