2011-05-19 138 views
1

運行IDEA幾個小時後,我注意到導航開始在編輯器中滯後。當我輸入內容時,大約需要1-2秒來解凍光標。當我打開一條新線時,它也凍結了一段時間(按下輸入5次會凍結IDEA大約10秒,如果我每次都等待直到它解凍),以及類似的情況。當光標凍結時,它覺得它在後臺進行某種搜索(也許是索引搜索)。目前,jvm堆在674MB中顯示爲292MB。Intellij IDEA遊標編輯器中的光標導航延遲

這些問題可能與哪些問題有關,以及如何排除它們?

[UPDATE]

另外OutOfMemory則拋出異常。

at com.intellij.util.io.PersistentEnumerator.enumerateImpl(PersistentEnumerator.java:354) 
at com.intellij.util.io.PersistentEnumerator.tryEnumerate(PersistentEnumerator.java:175) 
at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:219) 
at com.intellij.util.indexing.MapIndexStorage$1$1.compute(MapIndexStorage.java:78) 
at com.intellij.util.indexing.MapIndexStorage$1$1.compute(MapIndexStorage.java:70) 

Caused by: java.lang.RuntimeException: Mapping failed: C:\Users\...\Application Data\.IntelliJIdea90\system\index\idindex\IdIndex, position=0, length=10485760 

at com.intellij.util.io.ReadWriteMappedBufferWrapper.map(ReadWriteMappedBufferWrapper.java:51) 
at com.intellij.util.io.MappedBufferWrapper.buf(MappedBufferWrapper.java:68) 
at com.intellij.util.io.PagedFileStorage.getBuffer(PagedFileStorage.java:260) 
at com.intellij.util.io.PagedFileStorage.get(PagedFileStorage.java:170) 
at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:121) 
at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:141) 
at com.intellij.util.io.PersistentEnumerator.enumerateImpl(PersistentEnumerator.java:279) 
... 39 more 
Caused by: java.io.IOException: Map failed 
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:748) 
at com.intellij.util.io.ReadWriteMappedBufferWrapper.map(ReadWriteMappedBufferWrapper.java:48) 
... 45 more 
Caused by: java.lang.OutOfMemoryError: Map failed 
at sun.nio.ch.FileChannelImpl.map0(Native Method) 
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:745) 
... 46 more 

[更新II]

注意,在Windows任務管理器中的內存使用情況顯示在接近1GB(不匹配建議292MB)。 Intellij內置的內存轉儲已經產生了一個500MB的文件。 Intellij的WTM顯示內存也下降到500MB(但仍然很慢)。

+0

你從哪裏找到這個日誌輸出?我偶爾也會遇到類似的滯後現象。 – 2011-05-20 01:12:11

+1

如果您在Windows上,必須有一個隱藏的目錄' \ Documents and Settings \ \ IntelliJIdeaXX。\ system \ log',其中包含日誌。對於其他平臺/位置,請參閱此[鏈接](http://devnet.jetbrains.net/docs/DOC-181)。疑難解答詳細信息可以在這裏找到(http://stackoverflow.com/questions/6047627/intellij-diagnosing-crash-problem) – Leonid 2011-05-20 08:38:55

+0

我確切(?)同樣的問題。這非常煩人。你有沒有解決這個問題?如果您提交了錯誤報告,您是否有鏈接? – KajMagnus 2012-02-22 07:44:14

回答

0

我曾經有過這些類型的問題,他們似乎與源代碼控制集成(特別是Perforce)有關。如果您使用源代碼管理,請嘗試禁用它並查看會發生什麼情況。