gpt4 book ai didi

macos - OSX 上的 IntelliJ Idea 2016 内存问题

转载 作者:行者123 更新时间:2023-12-04 20:33:00 24 4
gpt4 key购买 nike

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

There is not enough memory to perform the requested operation. Please increase 'Xmx' setting and restart the IDE for change to take effect.



enter image description here

我做的最后一件事是在 idea.vmoptions 文件中将 Xmx 内存选项增加到 2048(按照这个答案 How to increase IDE memory limit in IntelliJ IDEA on Mac? 的指示)

但它仍然不断耗尽内存。

有谁知道我需要做什么?

...在进一步研究之后,现在在我看来它是一个导致内存故障的 git 进程。当我打开一个 git 管理的项目时启动。
enter image description here

日志摘录:

java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3332) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448) at java.lang.StringBuilder.append(StringBuilder.java:136) at git4idea.history.GitHistoryUtils$2.onLineAvailable(GitHistoryUtils.java:579) at sun.reflect.GeneratedMethodAccessor129.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:99) at com.intellij.util.EventDispatcher.access$200(EventDispatcher.java:35) at com.intellij.util.EventDispatcher$2.invoke(EventDispatcher.java:79) at com.sun.proxy.$Proxy123.onLineAvailable(Unknown Source) at git4idea.commands.GitLineHandler.notifyLine(GitLineHandler.java:144) at git4idea.commands.GitLineHandler.notifyLines(GitLineHandler.java:106) at git4idea.commands.GitLineHandler.onTextAvailable(GitLineHandler.java:74) at git4idea.commands.GitTextHandler$1.onTextAvailable(GitTextHandler.java:90) at sun.reflect.GeneratedMethodAccessor72.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.execution.process.ProcessHandler$4.invoke(ProcessHandler.java:226) at com.sun.proxy.$Proxy16.onTextAvailable(Unknown Source) at com.intellij.execution.process.ProcessHandler.notifyTextAvailable(ProcessHandler.java:200) at com.intellij.execution.process.BaseOSProcessHandler$SimpleOutputReader.onTextAvailable(BaseOSProcessHandler.java:290) at com.intellij.util.io.BaseOutputReader.sendText(BaseOutputReader.java:202) at com.intellij.util.io.BaseOutputReader.processInput(BaseOutputReader.java:186) at com.intellij.util.io.BaseOutputReader.readAvailableBlocking(BaseOutputReader.java:140) at com.intellij.util.io.BaseDataReader.readAvailable(BaseDataReader.java:82) at com.intellij.util.io.BaseDataReader.doRun(BaseDataReader.java:160) at com.intellij.util.io.BaseDataReader$1.run(BaseDataReader.java:61) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2017-01-04 10:16:01,967 [ 393766] ERROR - .intellij.util.EventDispatcher - IntelliJ IDEA 2016.3.2 Build IU-163.10154.41 2017-01-04 10:16:01,967 [ 393766] ERROR - .intellij.util.EventDispatcher - JDK: 1.8.0_112-release 2017-01-04 10:16:01,967 [ 393766] ERROR - .intellij.util.EventDispatcher - VM: OpenJDK 64-Bit Server VM 2017-01-04 10:16:01,967 [ 393766] ERROR - .intellij.util.EventDispatcher - Vendor: JetBrains s.r.o 2017-01-04 10:16:01,967 [ 393766] ERROR - .intellij.util.EventDispatcher - OS: Mac OS X 2017-01-04 10:16:01,971 [ 393770] ERROR - .intellij.util.EventDispatcher - Last Action: EditCustomVmOptions 2017-01-04 10:16:03,231 [ 395030] ERROR - .intellij.util.EventDispatcher - Java heap space

最佳答案

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

vcs.log.index.git=off

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

关于macos - OSX 上的 IntelliJ Idea 2016 内存问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41459315/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com