Intellij在编制索引期间冻结

时间:2017-06-19 21:37:24

标签: intellij-idea

我正在使用一个相对较大的代码仓库,需要全部加载到Intellij中。最近Intellij挂起很长时间(> 30分钟)来重新加载gradle文件后更新索引。
有没有解决方法?

冻结期间的Stacktrace:

at gnu.trove.TObjectHash.insertionIndex(TObjectHash.java:262)
    at gnu.trove.THashMap.put(THashMap.java:164)
    at com.intellij.openapi.util.objectTree.ObjectTree.putNode(ObjectTree.java:54)
    at com.intellij.openapi.util.objectTree.ObjectTree.createNodeFor(ObjectTree.java:116)
    at com.intellij.openapi.util.objectTree.ObjectTree.register(ObjectTree.java:78)
    - locked <0x00000007a2505f00> (a java.lang.Object)
    at com.intellij.openapi.util.Disposer.register(Disposer.java:95)
    at com.intellij.openapi.util.Disposer.register(Disposer.java:91)
    at com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl.registerContainer(VirtualFilePointerManagerImpl.java:366)
    at com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl.createContainer(VirtualFilePointerManagerImpl.java:358)
    - locked <0x00000007a1710270> (a com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl)
    at com.intellij.openapi.vfs.impl.VirtualFilePointerManagerImpl.createContainer(VirtualFilePointerManagerImpl.java:352)
    at com.intellij.openapi.roots.impl.libraries.LibraryImpl.initRoots(LibraryImpl.java:276)

2 个答案:

答案 0 :(得分:0)

您是否将bin,dist或www文件夹排除在重新编制索引之外?

右键单击任何目录 - &gt;将目录标记为 - &gt;排除。

答案 1 :(得分:0)

我尝试了一些事情。最大的性能改进原来是清理我的SSD磁盘。 SSD随着接近满而变得慢得多。