简体   繁体   English

期间发生内部错误:“更新索引”。eclipse 启动期间的Java 堆空间?

[英]An internal error occurred during: "Updating indexes".Java heap space during eclipse start up?

I am getting below error while starting eclipse启动 eclipse 时出现以下错误

An internal error occurred during: "Updating indexes".Java heap space?

It was running fine half an hour before.I restarted the eclipse and getting this error now?半小时前它运行良好。我重新启动了 eclipse 并现在收到此错误? i have 8 gb ram,window 7 64 bit OS.我有 8 GB 内存,window 7 64 位操作系统。 i have tried restarting my system but nothing helped?我试过重新启动我的系统,但没有任何帮助?

-startup
plugins/org.eclipse.equinox.launcher_1.1.1.R36x_v20101122_1400.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.2.R36x_v20101222
-showsplash
org.eclipse.platform
-showLocation
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vm
C:/Program Files (x86)/Java/jdk1.6.0_25/bin/javaw.exe
-vmargs
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.5
-Xms512m
-Xmx1024m

Not sure what i is the issue?不知道我是什么问题?

If you have m2e or other Maven plugin installed, you should check if the option at ' Window -> Preferences -> Maven -> Download repository updates index on startup ' is enabled. 如果您安装了m2e或其他Maven插件,则应检查是否启用了“ Window - > Preferences - > Maven - > Download repository updates index on startup ”选项。 Disable it and see if it resolves out of memory issue. 禁用它,看它是否解决了内存不足的问题。

If you are using eclipse or myeclipse, you can increase memory by making changes in .ini file (myeclipse.ini) 如果你正在使用eclipse或myeclipse,你可以通过在.ini文件(myeclipse.ini)中进行更改来增加内存

-Xmx2048m -Xmx2048m

-XX:MaxPermSize=1024m -XX:MaxPermSize参数=1024米

-XX:ReservedCodeCacheSize=512m -XX:ReservedCodeCacheSize =512米

-Dosgi.nls.warnings=ignore -Dosgi.nls.warnings =忽略

It will solve problem connected with heap space. 它将解决与堆空间相关的问题。

假设这是一个堆空间问题,请尝试以下FAQ: Eclipse-Wiki:FAQ如何增加Eclipse可用的堆大小?

This may not be directly related to the question, but this fixed the java heap issues I had: 这可能与问题没有直接关系,但这解决了我的java堆问题:

Launch eclipse using eclipse -vmargs -Xmx2048m . 使用eclipse -vmargs -Xmx2048m启动eclipse。

From the readme included with the eclipse install: 从eclipse安装中包含的自述文件:

By default, Eclipse will allocate up to 512 megabytes of Java heap memory. 默认情况下,Eclipse将分配最多512 MB的Java堆内存。 This should be ample for all typical development tasks. 这应该适用于所有典型的开发任务。 However, depending on the JRE that you are running, the number of additional plug-ins you are using, and the number of files you will be working with, you could conceivably have to increase this amount. 但是,根据您运行的JRE,您正在使用的其他插件的数量以及您将使用的文件数量,您可以想象必须增加此数量。 Eclipse allows you to pass arguments directly to the Java VM using the -vmargs command line argument, which must follow all other Eclipse specific arguments. Eclipse允许您使用-vmargs命令行参数将参数直接传递给Java VM,该参数必须遵循所有其他Eclipse特定参数。 Thus, to increase the available heap memory, you would typically use: 因此,要增加可用堆内存,通常使用:

 eclipse -vmargs -Xmx<memory size> 

with the value set to greater than "512M" (512 megabytes -- the default). 将值设置为大于“512M”(512兆字节 - 默认值)。

Old question, but I got this issue and adding more memory did not solve, so I rebuilt the java index by applying this comment from eclipse bug tracker:老问题,但我遇到了这个问题,添加更多内存并没有解决,所以我通过应用来自 eclipse 错误跟踪器的这个评论重建了 java 索引:

I Quote:我引用:

Click in "Quick Access", Type "Rebuild Java Index" (Actually just start typing it, use the auto completion), Hit enter.单击“快速访问”,键入“重建 Java 索引”(实际上只是开始键入它,使用自动完成),按 Enter。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在以下过程中发生内部错误:“启动 <myApp> ”。 Java堆空间 - An internal error occurred during: “Launching <myApp>”. Java heap space 在“检索原型:”期间发生内部错误。 Java 新建 Maven 项目时的堆空间 - An internal error occurred during: "Retrieving archetypes:". Java heap space when creating new Maven project 在Eclipse中启动testng时发生内部错误 - An internal error occurred during launching testng in eclipse 在“ Java搜索”期间发生内部错误。 -1 - An internal error occurred during: “Java Search”. -1 在“正在更新Maven项目”期间发生内部错误。 org.eclipse.m2e.wtp.WTPProjectsUtil.isM2eWtpDisabled - An internal error occurred during: “Updating Maven Project”. org.eclipse.m2e.wtp.WTPProjectsUtil.isM2eWtpDisabled VM初始化期间发生错误; 无法为对象堆保留足够的空间; 无法创建Java虚拟机 - Error occurred during initialization of VM; Could not reserve enough space for object heap; Could not create the Java virtual machine VM 初始化过程中发生错误 无法为对象堆保留足够的空间 无法创建 Java 虚拟机 - Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine VM初始化期间发生Java错误无法为对象堆保留足够的空间 - Java Error occurred during initialization of VM Could not reserve enough space for object heap Eclipse:工作空间中的所有项目开始给出内部错误:“ Validating XXXX” NullPointer异常 - Eclipse: All projects in the workspace start to give An internal error occurred during: “Validating XXXX” NullPointer Exception eclispe:在以下期间发生内部错误:“更新Maven项目” java.lang.StackOverflowError - eclispe : An internal error occurred during: “Updating Maven Project” java.lang.StackOverflowError
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM