为啥idea一直updating index
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了为啥idea一直updating index相关的知识,希望对你有一定的参考价值。
是因为使用了电脑清理软件,可走以下流程解决问题,点击File -> 选择invalidate Caches/Restart -> 点击invalidate and Restart,完美解决问题。 参考技术A如果想html写出来,那这个回帖必须支持html,如果不支持,发出来的就是代码源码了。
如果是dz性质的论坛且支持html语言,点高级模式,然后点纯文本,将html源码贴上来,提交即可。
Mac 它是苹果公司自1984年起以"Macintosh"开始开发的个人消费型计算机,如:iMac、Mac mini、Macbook Air、Macbook Pro、Macbook、Mac Pro等计算机。使用独立的Mac OS系统,最新的OS X系列基于NeXT系统开发,不支持兼容。是一套完备而独立的操作系统。
参考技术B 由于看到 上面的机器人很气愤,这里给个一种解决方案,看看是否有缓存清理工具在使用,mac上例如Dr.Cleaner windows 上的360之类的 关掉这些清理工具,再重新打开idea 就好了。原因就是这些清理工具会把indexing 的缓存不断清除,然后idea 又不断创建导致死循环而使cpu占用率过高。idea 中Update resources和Update classes and resourcesRedeploy的区别和应用场景
官方文档链接:https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html#update_options
Application update options
The update options are different depending on:
- the artifact format, i.e. on whether the application artifact is
exploded (unpacked) or packed (e.g. WAR, EAR) - the run/debug
configuration type, i.e. on whether the run/debug configuration is
local or remote (see Local and remote run configurations)
Option | Description | Available for |
---|---|---|
Update resources | All changed resources are updated (HTML, JSP, JavaScript, CSS and image files). | Exploded artifacts in local configurations |
Update classes and resources | Changed resources are updated; changed Java classes (EJBs, servlets, etc.) are recompiled.In the debug mode, the updated classes are hot-swapped. In the run mode, IntelliJ IDEA just updates the changed classes in the output folder. Whether such classes are actually reloaded in the running application, depends on the capabilities of the runtime being used. | Exploded artifacts in local configurations |
Hot swap classes | Changed classes are recompiled and reloaded at runtime. This option works only in the debug mode. | Packed artifacts in local configurations; exploded and packed artifacts in remote configurations |
Redeploy | The application artifact is rebuilt and redeployed. The operation may be time-consuming. | Exploded and packed artifacts in local and remote configurations |
Restart server | The server is restarted. The application artifact is rebuilt and redeployed. The operation may be very time-consuming. | Exploded and packed artifacts in local configurations |
以上是关于为啥idea一直updating index的主要内容,如果未能解决你的问题,请参考以下文章
idea 中Update resources和Update classes and resourcesRedeploy的区别和应用场景