OSX上的IntelliJ Idea 2016内存问题

tyr*_*pex 5 macos heap-memory intellij-idea

我刚刚更新为Idea 2016.3.2。并不断收到此错误。

没有足够的内存来执行请求的操作。请增加“ Xmx”设置并重新启动IDE,以使更改生效。

在此处输入图片说明

我做的最后一件事是将idea.vmoptions文件中的Xmx内存选项增加到2048(如此答案所指示,如何在Mac上的IntelliJ IDEA中增加IDE内存限制?

但是它仍然会耗尽内存。

有人知道我需要做什么吗?

...经过更多研究之后,在我看来,这似乎是一个导致内存故障的git进程。当我打开git管理的项目时启动。 在此处输入图片说明

摘录自日志:

java.lang.OutOfMemoryError:Java堆空间位于java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)处的java.util.Arrays.copyOf(Arrays.java:3332)处,java.lang.AbstractStringBuilder.append(AbstractStringBuilder)。 java.lang.StringBuilder.append(StringBuilder.java:136)上的java:448)git4idea.history.GitHistoryUtils $ 2.onLineAvailable(GitHistoryUtils.java:579)位于sun.reflect.GeneratedMethodAccessor129.invoke(未知源)处。在com.intellij.util.Event.Dispatcher.dispatch(EventDispatcher.java:99)处的com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99)处的java.lang.reflect.Method.invoke(Method.java:498)处的Reflection.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) .util.EventDispatcher.access $ 200(EventDispatcher.java:35)位于com.intellij.util.EventDispatcher $ 2.invoke(EventDispatcher。com.sun.proxy。$ Proxy123.onLineAvailable(java:79)at git4idea.commands.GitLineHandler.notifyLine(GitLineHandler.java:144)at git4idea.commands.GitLineHandler.notifyLines(GitLineHandler.java:106)at git4idea.commands.GitLineHandler.onTextAvailable(GitLineHandler.java:74)位于git4idea.commands.GitTextHandler $ 1.onTextAvailable(GitTextHandler.java:90)位于sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source)位于sun.reflect.DelegatingMethodokeorI (DelegatingMethodAccessorImpl.java:43)(位于java.lang.reflect.Method.invoke(Method.java:498)(位于com.intellij.execution.process.ProcessHandler $ 4.invoke(ProcessHandler.java:226))(位于com.sun.proxy) 。$ Proxy16.onTextAvailable(未知源),位于com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:200)在com.intellij.util.io的com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:202)的com.intellij.execution.process.BaseOSProcessHandler $ SimpleOutputReader.onTextAvailable(BaseOSProcessHandler $ on) com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:140)的com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:82)的.BaseOutputReader.processInput(BaseOutputReader.java:186) com.intellij.util.io.BaseDataReader $ 1.run(BaseDataReader.java:61)处的com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:160)java.util.concurrent.Executors $ RunnableAdapter.call (Executors.java:511)在java.util.concurrent.FutureTask.run(FutureTask.java:266)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-IntelliJ IDEA 2016.3.2构建IU-163.10154.41 2017-01-04 10:16:01,967 [393766]错误- .intellij.util.EventDispatcher-JDK:1.8.0_112-release 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-VM:OpenJDK 64位服务器VM 2017-01-04 10 :16:01,967 [393766]错误-.intellij.util.EventDispatcher-供应商:JetBrains sro 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-操作系统:Mac OS X 2017-01 -04 10:16:01,971 [393770]错误-.intellij.util.EventDispatcher-最后操作:EditCustomVmOptions 2017-01-04 10:16:03,231 [395030]错误-.intellij.util.EventDispatcher-Java堆空间2 Build IU-163.10154.41 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-JDK:1.8.0_112-release 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-VM:OpenJDK 64位服务器VM 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-供应商:JetBrains sro 2017-01-04 10:16 :01,967 [393766]错误-.intellij.util.EventDispatcher-操作系统:Mac OS X 2017-01-04 10:16:01,971 [393770]错误-.intellij.util.EventDispatcher-最后操作:EditCustomVmOptions 2017-01-04 10:16:03,231 [395030]错误-.intellij.util.EventDispatcher-Java堆空间2 Build IU-163.10154.41 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-JDK:1.8.0_112-release 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-VM:OpenJDK 64位服务器VM 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-供应商:JetBrains sro 2017-01-04 10:16 :01,967 [393766]错误-.intellij.util.EventDispatcher-操作系统:Mac OS X 2017-01-04 10:16:01,971 [393770]错误-.intellij.util.EventDispatcher-最后操作:EditCustomVmOptions 2017-01-04 10:16:03,231 [395030]错误-.intellij.util.EventDispatcher-Java堆空间OpenJDK 64位服务器VM 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-供应商:JetBrains sro 2017-01-04 10:16:01,967 [393766]错误-.intellij。 util.EventDispatcher-操作系统:Mac OS X 2017-01-04 10:16:01,971 [393770]错误-.intellij.util.EventDispatcher-最后操作:EditCustomVmOptions 2017-01-04 10:16:03,231 [395030]错误- .intellij.util.EventDispatcher-Java堆空间OpenJDK 64位服务器VM 2017-01-04 10:16:01,967 [393766]错误-.intellij.util.EventDispatcher-供应商:JetBrains sro 2017-01-04 10:16:01,967 [393766]错误-.intellij。 util.EventDispatcher-操作系统:Mac OS X 2017-01-04 10:16:01,971 [393770]错误-.intellij.util.EventDispatcher-最后操作:EditCustomVmOptions 2017-01-04 10:16:03,231 [395030]错误- .intellij.util.EventDispatcher-Java堆空间

tyr*_*pex 6

找到解决方案:将此添加到自定义属性(通过帮助菜单;编辑自定义属性)

vcs.log.index.git=off
Run Code Online (Sandbox Code Playgroud)

这样 Idea 就不会尝试索引你的整个 repo 和